Skip to content
Snippets Groups Projects
Unverified Commit 0b8b12da authored by Cam Saul's avatar Cam Saul
Browse files

Test fix :wrench: [ci drivers]

parent 044f6e40
No related branches found
No related tags found
No related merge requests found
......@@ -332,11 +332,9 @@
(expect
(assoc (aggregate-col :sum (Field (data/id :venues :price)))
:settings {:is_priceless false})
(tt/with-temp Field [copy-of-venues-price (-> (Field (data/id :venues :price))
(dissoc :id)
(assoc :settings {:is_priceless false}))]
(tu/with-temp-vals-in-db Field (data/id :venues :price) {:settings {:is_priceless false}}
(let [results (data/run-mbql-query venues
{:aggregation [[:sum [:field-id (u/get-id copy-of-venues-price)]]]})]
{:aggregation [[:sum [:field-id $price]]]})]
(or (-> results :data :cols first)
results))))
......
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