Skip to content

Commit 2c3b589

Browse files
committed
Use sushi_tset_dbt_context like other tests
1 parent 30693b1 commit 2c3b589

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/dbt/test_model.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -692,14 +692,13 @@ def test_load_microbatch_with_ref_no_filter(
692692

693693
@pytest.mark.slow
694694
def test_load_multiple_snapshots_defined_in_same_file(sushi_test_dbt_context: Context) -> None:
695-
context = sushi_test_dbt_context
696-
assert context.get_model("snapshots.items_snapshot")
697-
assert context.get_model("snapshots.items_check_snapshot")
695+
assert sushi_test_dbt_context.get_model("snapshots.items_snapshot")
696+
assert sushi_test_dbt_context.get_model("snapshots.items_check_snapshot")
698697

699698
# Make sure cache works too
700-
context.load()
701-
assert context.get_model("snapshots.items_snapshot")
702-
assert context.get_model("snapshots.items_check_snapshot")
699+
sushi_test_dbt_context.load()
700+
assert sushi_test_dbt_context.get_model("snapshots.items_snapshot")
701+
assert sushi_test_dbt_context.get_model("snapshots.items_check_snapshot")
703702

704703

705704
@pytest.mark.slow

0 commit comments

Comments
 (0)