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

Test fix :wrench:

parent 4f175068
No related branches found
No related tags found
No related merge requests found
(ns metabase.query-processor.parameters-test
(:require [clj-time.core :as t]
(:require [clojure.set :as set]
[clj-time.core :as t]
[clj-time.format :as tf]
[expectations :refer :all]
[metabase.driver :as driver]
......@@ -312,8 +313,11 @@
;;; | END-TO-END TESTS |
;;; +-------------------------------------------------------------------------------------------------------+
;; for some reason param substitution tests fail on Redshift so just don't run those for now
(def ^:private ^:const params-test-engines (set/difference non-timeseries-engines #{:redshift}))
;; check that date ranges work correctly
(datasets/expect-with-engines non-timeseries-engines
(datasets/expect-with-engines params-test-engines
[29]
(first-row (qp/process-query {:database (data/id)
:type :query
......@@ -326,7 +330,7 @@
:value "2015-04-01~2015-05-01"}]})))
;; check that IDs work correctly (passed in as numbers)
(datasets/expect-with-engines non-timeseries-engines
(datasets/expect-with-engines params-test-engines
[1]
(first-row (qp/process-query {:database (data/id)
:type :query
......@@ -339,7 +343,7 @@
:value 100}]})))
;; check that IDs work correctly (passed in as strings, as the frontend is wont to do; should get converted)
(datasets/expect-with-engines non-timeseries-engines
(datasets/expect-with-engines params-test-engines
[1]
(first-row (qp/process-query {:database (data/id)
:type :query
......
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