diff --git a/tests/functional/unit_testing/fixtures.py b/tests/functional/unit_testing/fixtures.py index 1da67f7e762..7445f8b3493 100644 --- a/tests/functional/unit_testing/fixtures.py +++ b/tests/functional/unit_testing/fixtures.py @@ -145,6 +145,24 @@ - {c: 3} """ +test_disabled_my_model_yml = """ +unit_tests: + - name: test_disabled_my_model + model: my_model + config: + enabled: false + given: + - input: ref('my_model_a') + rows: + - {id: 1, a: 1} + - input: ref('my_model_b') + rows: + - {id: 1, b: 2} + - {id: 2, b: 2} + expect: + rows: + - {c: 3} +""" test_my_model_simple_fixture_yml = """ unit_tests: diff --git a/tests/functional/unit_testing/test_ut_list.py b/tests/functional/unit_testing/test_ut_list.py index a348203ec64..ccb9f887bae 100644 --- a/tests/functional/unit_testing/test_ut_list.py +++ b/tests/functional/unit_testing/test_ut_list.py @@ -7,6 +7,7 @@ my_model_a_sql, my_model_b_sql, my_model_vars_sql, + test_disabled_my_model_yml, test_my_model_yml, ) @@ -21,6 +22,7 @@ def models(self): "my_model_a.sql": my_model_a_sql, "my_model_b.sql": my_model_b_sql, "test_my_model.yml": test_my_model_yml + datetime_test, + "test_disabled_my_model.yml": test_disabled_my_model_yml } @pytest.fixture(scope="class")