Skip to content

Commit edad6bc

Browse files
committed
Fix tests
1 parent 289b0f0 commit edad6bc

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

@@ -2635,7 +2636,7 @@ def test_selected_resources_with_selectors():
26352636
assert any("customers" in model for model in plan.selected_models)
26362637

26372638
# Test wildcard selection
2638-
plan_builder = sushi_context.plan_builder(select_models=["sushi.waiter_*"])
2639+
plan_builder = sushi_context.plan_builder(select_models=['"sushi"."waiter_*'])
26392640
plan = plan_builder.build()
26402641
assert plan.selected_models is not None
26412642
assert len(plan.selected_models) >= 4

0 commit comments

Comments
 (0)