(ns datomic.ion.rsstoemail.test-fixtures
  (:require
   [clojure.test :as t]
   [datomic.dev-local :as dl]
   [datomic.ion.rsstoemail.db-utils :as db-utils]))

(defn with-db [f]
  (db-utils/load-schemas)
  (f))

(defn test-setup []
;; this is so scary
  (dl/divert-system {:system "datomic-4" :storage-dir :mem})
  (t/use-fixtures :once with-db))

 this is so scary
(ns datomic.ion.rsstoemail.test-fixtures
  (:require
   [clojure.test :as t]
   [datomic.dev-local :as dl]
   [datomic.ion.rsstoemail.db-utils :as db-utils]))

(defn with-db [f]
  (db-utils/load-schemas)
  (f))

(defn test-setup []
  (dl/divert-system {:system "datomic-4" :storage-dir :mem})
  (t/use-fixtures :once with-db))
