Skip to content
Snippets Groups Projects
Commit e74b8eb2 authored by Cam Saül's avatar Cam Saül
Browse files

Mongo test fix :honey_pot:

parent 9bab1ff0
Branches
Tags
No related merge requests found
......@@ -137,7 +137,10 @@
{:rows 1000, :active true, :name "checkins"}
{:rows 15, :active true, :name "users"}
{:rows 100, :active true, :name "venues"}]
(db/select [Table :name :active :rows], :db_id (:id (mongo-db)), {:order-by [:name]}))
(for [field (db/select [Table :name :active :rows]
:db_id (:id (mongo-db))
{:order-by [:name]})]
(into {} field)))
;; Test that Fields got synced correctly, and types are correct
(expect-when-testing-mongo
......@@ -158,7 +161,8 @@
{:special_type :name, :base_type :TextField, :name "name"}
{:special_type :category, :base_type :IntegerField, :name "price"}]]
(for [nm table-names]
(db/select [Field :name :base_type :special_type]
:active true
:table_id (:id (table-name->table nm))
{:order-by [:name]})))
(for [field (db/select [Field :name :base_type :special_type]
:active true
:table_id (:id (table-name->table nm))
{:order-by [:name]})]
(into {} field))))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment