diff --git a/test/metabase/automagic_dashboards/core_test.clj b/test/metabase/automagic_dashboards/core_test.clj index dd9554897650e7fdef319c9ba10d05cee6dfe1ac..958899fbb09cbc90dc111658fd611695e8e68d0a 100644 --- a/test/metabase/automagic_dashboards/core_test.clj +++ b/test/metabase/automagic_dashboards/core_test.clj @@ -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