Skip to content

Commit 67e8455

Browse files
committed
Fix tests
1 parent a46c412 commit 67e8455

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/dbt/test_transformation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def test_dbt_custom_materialization_with_time_filter_and_macro():
164164
today = datetime.now()
165165

166166
# select both custom materialiasation models with the wildcard
167-
selector = ["sushi.custom_incremental*"]
167+
selector = ['"sushi"."custom_incremental*']
168168
plan_builder = sushi_context.plan_builder(select_models=selector, execution_time=today)
169169
plan = plan_builder.build()
170170

@@ -191,6 +191,7 @@ def test_dbt_custom_materialization_with_time_filter_and_macro():
191191

192192
# - run ONE DAY LATER
193193
a_day_later = today + timedelta(days=1)
194+
selector = ['"sushi"."custom_incremental*']
194195
sushi_context.run(select_models=selector, execution_time=a_day_later)
195196
result_after_run = sushi_context.engine_adapter.fetchdf(select_daily)
196197

@@ -2624,7 +2625,7 @@ def test_selected_resources_with_selectors():
26242625
assert any("customers" in model for model in plan.selected_models)
26252626

26262627
# Test wildcard selection
2627-
plan_builder = sushi_context.plan_builder(select_models=["sushi.waiter_*"])
2628+
plan_builder = sushi_context.plan_builder(select_models=['"sushi"."waiter_*'])
26282629
plan = plan_builder.build()
26292630
assert plan.selected_models is not None
26302631
assert len(plan.selected_models) >= 4

0 commit comments

Comments
 (0)