Skip to content

Commit 065a37e

Browse files
committed
Use sushi_tset_dbt_context like other tests
1 parent 7168f94 commit 065a37e

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
@@ -697,14 +697,13 @@ def test_load_microbatch_with_ref_no_filter(
697697

698698
@pytest.mark.slow
699699
def test_load_multiple_snapshots_defined_in_same_file(sushi_test_dbt_context: Context) -> None:
700-
context = sushi_test_dbt_context
701-
assert context.get_model("snapshots.items_snapshot")
702-
assert context.get_model("snapshots.items_check_snapshot")
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
# Make sure cache works too
705-
context.load()
706-
assert context.get_model("snapshots.items_snapshot")
707-
assert context.get_model("snapshots.items_check_snapshot")
704+
sushi_test_dbt_context.load()
705+
assert sushi_test_dbt_context.get_model("snapshots.items_snapshot")
706+
assert sushi_test_dbt_context.get_model("snapshots.items_check_snapshot")
708707

709708

710709
@pytest.mark.slow

0 commit comments

Comments
 (0)