Skip to content

Commit

Permalink
Enable on_table_exists 'replace' mode tests for SEP, and on delta
Browse files Browse the repository at this point in the history
  • Loading branch information
damian3031 committed Apr 19, 2024
1 parent 7ddbed8 commit f053fff
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tests/functional/adapter/materialization/test_on_table_exists.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ def test_run_seed_test(self, project):
check_relations_equal(project.adapter, ["seed", "materialization"])


# TODO: Enable for SEP, after support for CORTAS will be added
@pytest.mark.skip_engine("starburst_enterprise")
@pytest.mark.iceberg
class TestOnTableExistsReplace(BaseOnTableExists):
class BaseOnTableExistsReplace(BaseOnTableExists):
"""
Testing on_table_exists = `replace` configuration for table materialization,
using dbt seed, run and tests commands and validate data load correctness.
Expand Down Expand Up @@ -98,3 +95,13 @@ def test_run_seed_test(self, project):

# check if the data was loaded correctly
check_relations_equal(project.adapter, ["seed", "materialization"])


@pytest.mark.iceberg
class TestOnTableExistsReplaceIceberg(BaseOnTableExistsReplace):
pass


@pytest.mark.delta
class TestOnTableExistsReplaceDelta(BaseOnTableExistsReplace):
pass

0 comments on commit f053fff

Please sign in to comment.