Skip to content
Snippets Groups Projects
Commit a315323f authored by Allen Gilliland's avatar Allen Gilliland
Browse files

oops. need to make sure drivers are loaded for unit tests.

parent db2fd5d2
Branches
Tags
No related merge requests found
......@@ -6,6 +6,7 @@
[expectations :refer :all]
(metabase [core :as core]
[db :as db]
[driver :as driver]
[util :as u])
(metabase.models [setting :as setting]
[table :refer [Table]])
......@@ -65,6 +66,10 @@
;; # ------------------------------ FUNCTIONS THAT GET RUN ON TEST SUITE START / STOP ------------------------------
;; this is a little odd, but our normal `test-startup` function won't work for loading the drivers because
;; they need to be loaded at compile time for some of the unit tests work work properly, so we put this here
(defonce ^:private loaded-drivers (driver/find-and-load-drivers!))
(defn- load-test-data!
"Call `load-data!` on all the datasets we're testing against."
[]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment