Skip to content
Snippets Groups Projects
Commit cda99bf2 authored by Simon Belak's avatar Simon Belak
Browse files

Update tests for /candidates

parent acc8e426
No related branches found
No related tags found
No related merge requests found
......@@ -206,22 +206,20 @@
(expect
3
(with-rasta
(->> (Database (data/id)) candidate-tables first :tables count)))
;; /candidates should work with unanalyzed tables
(expect
1
(tt/with-temp* [Database [{db-id :id}]
Table [{table-id :id} {:db_id db-id}]
Field [{} {:table_id table-id}]
Field [{} {:table_id table-id}]]
(with-rasta
(with-dashboard-cleanup
(let [database (Database db-id)
not-analyzed-count (count (candidate-tables database))]
(db/update! Table table-id :entity_type :entity/GenericTable)
(= (inc not-analyzed-count) (count (candidate-tables database))))))))
(expect
3
(with-rasta
(->> (Database (data/id)) candidate-tables first :tables count)))
(count (candidate-tables (Database db-id)))))))
;; Identity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment