We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4473bc0 commit 6c52f8cCopy full SHA for 6c52f8c
tests/dbt/test_model.py
@@ -733,6 +733,18 @@ def test_load_microbatch_with_ref_no_filter(
733
)
734
735
736
+@pytest.mark.slow
737
+def test_load_multiple_snapshots_defined_in_same_file(sushi_test_dbt_context: Context) -> None:
738
+ context = sushi_test_dbt_context
739
+ assert context.get_model("snapshots.items_snapshot")
740
+ assert context.get_model("snapshots.items_check_snapshot")
741
+
742
+ # Make sure cache works too
743
+ context.load()
744
745
746
747
748
@pytest.mark.slow
749
def test_dbt_jinja_macro_undefined_variable_error(create_empty_project):
750
project_dir, model_dir = create_empty_project()
0 commit comments