Skip to content
Snippets Groups Projects
Commit 276e3bb6 authored by Ryan Senior's avatar Ryan Senior
Browse files

Ensure the test db is created before checking an id

Calling metabase.test.data/id with no args ensured the db was created,
I added that same check to the other arities of the id method.
parent d23b2669
No related branches found
No related tags found
No related merge requests found
......@@ -155,9 +155,13 @@
(:id (db)))
([table-name]
;; Ensure the database has been created
(db)
(get-table-id-or-explode (id) table-name))
([table-name field-name & nested-field-names]
;; Ensure the database has been created
(db)
(let [table-id (id table-name)]
(loop [parent-id (get-field-id-or-explode table-id field-name), [nested-field-name & more] nested-field-names]
(if-not nested-field-name
......
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