             {:keyspace "er_cassandra_test"
              ;; set to false to preserve db contents after tests
              :truncate-on-close true
-             :trace? :warn
+             ;; :trace? :warn
              ;; :consistency :all
              }}})
 

  [[:logging logconf/configure-timbre [:timbre]]
   [:cassandra ams/create-test-session [:config :alia-session]]])

(defn with-system
  [sys f]
  (let [system @(sys/system-map sys)]
    (binding [*model-session* (:cassandra system)]
      (f))))

(defn with-model-session-fixture
  "a clojure.test fixture which sets up logging and

  (fn [f]

    (let [sb (sys/system-builder alia-test-model-session-system-def)
          sys (deferst/create-system
                sb
                alia-test-model-session-config)]
      (with-system* sys f))))

(defn create-table
  "creates a table for test - drops any existing version of the table first"
