Skip to content

Commit

Permalink
Update tests to reflect realities on the database.
Browse files Browse the repository at this point in the history
  • Loading branch information
VersusFacit committed Sep 26, 2024
1 parent 623a005 commit 0e6c1c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/functional/iceberg/test_incremental_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"""


class TestIcebergStrategies:
class TestIcebergIncrementalStrategies:
@pytest.fixture(scope="class")
def project_config_update(self):
return {"flags": {"enable_iceberg_materializations": True}}
Expand Down Expand Up @@ -121,6 +121,6 @@ def test_incremental_strategies_with_update(self, project, setup_class):
run_results = run_dbt(["run", "-s", "append", "merge", "delete_insert"])
assert len(run_results) == 3

self.__check_correct_operations("append", rows_affected=2)
self.__check_correct_operations("append", rows_affected=3)
self.__check_correct_operations("merge", rows_affected=1)
self.__check_correct_operations("delete_insert", rows_affected=1)
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def error_message(self) -> str:
# Model(models.DYNAMIC_TABLE, "dynamic_table", "default"),
# Model(models.DYNAMIC_ICEBERG_TABLE, "dynamic_table", "iceberg"),
Model(models.ICEBERG_TABLE, "table", "iceberg"),
Model(models.ICEBERG_INCREMENTAL_TABLE, "incremental", "iceberg"),
Model(models.ICEBERG_INCREMENTAL_TABLE, "table", "iceberg"),
]
scenarios = [Scenario(*scenario) for scenario in product(relations, relations)]

Expand Down

0 comments on commit 0e6c1c6

Please sign in to comment.