Skip to content

Commit

Permalink
CMR-5658: Updated tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ygliuvt committed Apr 4, 2019
1 parent 5983282 commit d9a6374
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
var-concept-id concept-id]
(is (mdb/concept-exists-in-mdb? concept-id revision-id))
(is (= 1 revision-id))
(is (= "7bec71103f3eada1f539acb9f1072fd7"
(is (= "f89e99210c80df96d6d35f005d57c5f8"
(get-in (mdb/get-concept concept-id revision-id) [:extra-fields :fingerprint])))

(testing "ingest the same concept on a different provider is OK"
Expand All @@ -44,7 +44,7 @@
(variable-util/token-opts token2))]
(is (mdb/concept-exists-in-mdb? concept-id revision-id))
(is (= 1 revision-id))
(is (= "7bec71103f3eada1f539acb9f1072fd7"
(is (= "f89e99210c80df96d6d35f005d57c5f8"
(get-in (mdb/get-concept concept-id revision-id)
[:extra-fields :fingerprint])))))

Expand All @@ -60,7 +60,7 @@
(variable-util/token-opts token))]
(is (mdb/concept-exists-in-mdb? concept-id revision-id))
(is (= 2 revision-id))
(is (= "7bec71103f3eada1f539acb9f1072fd7"
(is (= "f89e99210c80df96d6d35f005d57c5f8"
(get-in (mdb/get-concept concept-id revision-id)
[:extra-fields :fingerprint])))))

Expand All @@ -81,7 +81,7 @@
"but different native id was found: [%s].")
var-concept-id)]
errors))))))

(testing "ingest of a variable concept with a revision id"
(let [concept (variable-util/make-variable-concept {} {:native-id "var1"
:revision-id 5})
Expand Down

0 comments on commit d9a6374

Please sign in to comment.