3 (:use [helpers] :reload-all)
8 (:import java.io.ByteArrayInputStream)
9 (:require clojure.contrib.str-utils)
10 (:require commands.add)
14 (def configs (load-file "etc/config/config.test.clj"))
18 (defn test-fixture-shell
19 "Initialize the shell"
25 "test to clear out shell memory before a test is run"
28 ;; make the shell active
30 (alter bkell/shell conj
33 ;; create a basic user in the DB
34 (add-user (:url-test configs) (:system-dir configs) { :tag "user" :attrs { :id "test.user" } } )
36 ;; ** execute the TEST function
39 ;; make the shell inactive
41 (alter bkell/shell conj
46 (use-fixtures :once test-fixture-shell)
47 (use-fixtures :each test-fixture-db)
50 (deftest test-login []
56 ;; test result when already logged in
57 (deftest test-existing-login []
62 ;; test a login with a bad password
63 (deftest test-bad-password []
69 (deftest test-logout []