 
 
 ;; with valid user-id
-(let [{:keys [id email] :as user} (test-data/fetch-user :rasta)]
+(let [{:keys [id email] :as user} (fetch-user :rasta)]
   (assert user)
   (expect
     {:userid id

            [metabase.api.common :refer [*current-user-id* *current-user*]]
            [metabase.middleware.auth :refer :all]
            [metabase.models.session :refer [Session]]
            [metabase.test-data :as test-data]
            [metabase.util :as util]
            [ring.mock.request :as mock]))


;;;;  ===========================  TEST wrap-sessionid middleware  ===========================


;; valid sessionid
(let [sessionid (.toString (java.util.UUID/randomUUID))
      user-id (user->id :rasta)]
  (assert sessionid)
  (assert user-id)
  ;; create a new session
