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

explicitly test for show=1

parent d180da61
No related branches found
No related tags found
No related merge requests found
......@@ -112,9 +112,7 @@
;; We want to both generate as many cards as we can to catch all aberrations, but also make sure
;; that size limiting works.
(and (valid-dashboard? (automagic-analysis entity {:cell-query cell-query :show :all}))
(let [dashboard (automagic-analysis entity {:cell-query cell-query :show 1})]
(assert (->> dashboard :ordered_cards (keep :card) count (>= 1)))
(valid-dashboard? dashboard)))))
(valid-dashboard? (automagic-analysis entity {:cell-query cell-query :show 1})))))
(expect
(with-rasta
......@@ -122,6 +120,15 @@
(->> (db/select Table :db_id (data/id))
(every? test-automagic-analysis)))))
(expect
(with-rasta
(with-dashboard-cleanup
(->> (automagic-analysis (Table (data/id :venues)) {:show 1})
:ordered_cards
(filter :card)
count
(= 1)))))
(expect
(with-rasta
(with-dashboard-cleanup
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment