From fe833935c5048bcfc96bf6f1b30475ba9516bf6c Mon Sep 17 00:00:00 2001 From: Mila Page <67295367+VersusFacit@users.noreply.github.com> Date: Tue, 11 Jun 2024 19:48:00 +0000 Subject: [PATCH] Skip with reason dynamic table tests with reference to PR. (#1080) Co-authored-by: Mila Page --- .../dynamic_table_tests/test_dynamic_tables_changes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/functional/adapter/dynamic_table_tests/test_dynamic_tables_changes.py b/tests/functional/adapter/dynamic_table_tests/test_dynamic_tables_changes.py index 84fa22a0c..22baffd3d 100644 --- a/tests/functional/adapter/dynamic_table_tests/test_dynamic_tables_changes.py +++ b/tests/functional/adapter/dynamic_table_tests/test_dynamic_tables_changes.py @@ -22,6 +22,8 @@ query_warehouse, ) +DT_SKIP_MESSAGE = "Dynamic tables are known to be broken in v1.6; see https://github.com/dbt-labs/dbt-snowflake/issues/1016; see https://github.com/dbt-labs/dbt-snowflake/pull/1049 for fix. Backports were determined only to be done for versions 1.7+. Users should therefore upgrade to v1.7+ for the fix." + class SnowflakeDynamicTableChanges: @staticmethod @@ -122,6 +124,7 @@ def test_full_refresh_occurs_with_changes(self, project, my_dynamic_table): assert_message_in_logs(f"Applying REPLACE to: {my_dynamic_table}", logs) +@pytest.mark.skip(reason=DT_SKIP_MESSAGE) class TestSnowflakeDynamicTableChangesApply(SnowflakeDynamicTableChanges): @pytest.fixture(scope="class") def project_config_update(self): @@ -171,6 +174,7 @@ def test_change_is_applied_via_replace(self, project, adapter, my_dynamic_table) assert_message_in_logs(f"Applying REPLACE to: {my_dynamic_table}", logs) +@pytest.mark.skip(reason=DT_SKIP_MESSAGE) class TestSnowflakeDynamicTableChangesContinue(SnowflakeDynamicTableChanges): @pytest.fixture(scope="class") def project_config_update(self): @@ -213,6 +217,7 @@ def test_change_is_not_applied_via_replace(self, project, adapter, my_dynamic_ta assert_message_in_logs(f"Applying REPLACE to: {my_dynamic_table}", logs, False) +@pytest.mark.skip(reason=DT_SKIP_MESSAGE) class TestSnowflakeDynamicTableChangesFailMixin(SnowflakeDynamicTableChanges): @pytest.fixture(scope="class") def project_config_update(self):