aboutsummaryrefslogtreecommitdiff
path: root/test/clj/queue_api/test/db/core_test.clj
diff options
context:
space:
mode:
Diffstat (limited to 'test/clj/queue_api/test/db/core_test.clj')
-rw-r--r--test/clj/queue_api/test/db/core_test.clj11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/clj/queue_api/test/db/core_test.clj b/test/clj/queue_api/test/db/core_test.clj
index c1ecc6d..a624319 100644
--- a/test/clj/queue_api/test/db/core_test.clj
+++ b/test/clj/queue_api/test/db/core_test.clj
@@ -42,8 +42,8 @@
;;Agent that will be linked to jobs
{:agent/id "644be0ce-035d-48cb-867e-8e6de2714a8d"
:agent/name "Dummy Derp"
- :primary-skillset ["rewards-question" "bills-question"]
- :secondary-skillset []}
+ :agent/primary-skillset ["rewards-question" "bills-question"]
+ :agent/secondary-skillset []}
;;Change job status to :completed and link agent
{:job/id "1e0d939d-494b-48d2-9247-b5ae207a519a"
:job/status :completed
@@ -138,4 +138,9 @@
(testing "Test sum-agent"
(is (= [{:type "bills-question", :jobs 2} {:type "purchases-question", :jobs 1}]
(sum-agent "644be0ce-035d-48cb-867e-8e6de2714a8d")))
- (is (= [] (sum-agent "00000000-0000-0000-0000-000000000000"))))) \ No newline at end of file
+ (is (= [] (sum-agent "00000000-0000-0000-0000-000000000000")))))
+
+(deftest request-job-test
+ (testing "test query for skillset"
+ (is (= (d/entity @conn [:job/id "96cf6f11-591d-4cde-9ab0-56e371acb6d2"])
+ (request-job "644be0ce-035d-48cb-867e-8e6de2714a8d"))))) \ No newline at end of file