Skip to content

Commit

Permalink
Skip with reason dynamic table tests with reference to PR. (#1080)
Browse files Browse the repository at this point in the history
Co-authored-by: Mila Page <[email protected]>
  • Loading branch information
VersusFacit and VersusFacit authored Jun 11, 2024
1 parent 07c494e commit fe83393
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit fe83393

Please sign in to comment.