Skip to content

Commit

Permalink
fix side effect
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Sep 4, 2024
1 parent 3ea3530 commit e6620ce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/unit_tests/jinja_context_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ def test_metric_macro_no_dataset_id_with_context_chart_no_datasource_id(
(
[],
{"target_type": "TIMESTAMP"},
"postgresql://",
"postgresql://mydb",
[{}],
TimeFilter(
from_expr=None,
Expand All @@ -859,7 +859,7 @@ def test_metric_macro_no_dataset_id_with_context_chart_no_datasource_id(
(
[],
{"target_type": "TIMESTAMP"},
"postgresql://",
"postgresql://mydb",
[{"time_range": "Last week"}],
TimeFilter(
from_expr="TO_TIMESTAMP('2024-08-27 00:00:00.000000', 'YYYY-MM-DD HH24:MI:SS.US')",
Expand All @@ -872,7 +872,7 @@ def test_metric_macro_no_dataset_id_with_context_chart_no_datasource_id(
(
["dttm"],
{},
"postgresql://",
"postgresql://mydb",
[
{
"filters": [
Expand All @@ -895,7 +895,7 @@ def test_metric_macro_no_dataset_id_with_context_chart_no_datasource_id(
(
["dt"],
{"remove_filter": True},
"postgresql://",
"postgresql://mydb",
[
{
"filters": [
Expand All @@ -918,7 +918,7 @@ def test_metric_macro_no_dataset_id_with_context_chart_no_datasource_id(
(
["dttm"],
{"target_type": "DATE", "remove_filter": True},
"trino://",
"trino://mydb",
[
{
"filters": [
Expand Down

0 comments on commit e6620ce

Please sign in to comment.