Skip to content
Snippets Groups Projects
Unverified Commit 77a09410 authored by Cam Saul's avatar Cam Saul Committed by GitHub
Browse files

Test fix :wrench: (#15082)

* Test fix :wrench:

* Fix whitespace error
parent cecb7d6c
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@
Caller can optionally specify a `:table_id` or `:table_name` in the body to limit updates to a single
`Table`. Optional Parameter `:scan` can be `\"full\" or \"schema\" for a full sync or a schema sync, available
regardless if a `:table_id` or `:table_name` is passed.
This endpoint is secured by an API key that needs to be passed as a `X-METABASE-APIKEY` header which needs to be defined in
This endpoint is secured by an API key that needs to be passed as a `X-METABASE-APIKEY` header which needs to be defined in
the `MB_API_KEY` [environment variable](https://www.metabase.com/docs/latest/operations-guide/environment-variables.html#mb_api_key)"
[id :as {{:keys [table_id table_name scan]} :body}]
{table_id (s/maybe su/IntGreaterThanZero)
......
......@@ -1074,7 +1074,7 @@
(deftest field-filter-start-of-week-test
(testing "Field Filters with relative date ranges should respect the custom start of week setting (#14294)"
(mt/dataset checkins:1-per-day
(let [query (mt/native-query {:query (str "SELECT id, dayname(\"TIMESTAMP\") as day "
(let [query (mt/native-query {:query (str "SELECT dayname(\"TIMESTAMP\") as day "
"FROM checkins "
"[[WHERE {{date_range}}]] "
"ORDER BY \"TIMESTAMP\" ASC "
......@@ -1088,13 +1088,13 @@
:name "created_at"
:target [:dimension [:template-tag "date_range"]]
:value "past1weeks"}]})]
(doseq [[first-day-of-week expected] {"sunday" [6 "Sunday"]
"monday" [7 "Monday"]
"tuesday" [8 "Tuesday"]
"wednesday" [9 "Wednesday"]
"thursday" [3 "Thursday"]
"friday" [4 "Friday"]
"saturday" [5 "Saturday"]}]
(doseq [[first-day-of-week expected] {"sunday" ["Sunday"]
"monday" ["Monday"]
"tuesday" ["Tuesday"]
"wednesday" ["Wednesday"]
"thursday" ["Thursday"]
"friday" ["Friday"]
"saturday" ["Saturday"]}]
(mt/with-temporary-setting-values [start-of-week first-day-of-week]
(is (= expected
(mt/first-row
......
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