Skip to content

Commit 7502c8b

Browse files
committed
add tests for new incremental features
1 parent c6a9748 commit 7502c8b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
1+
import pytest
2+
from dbt.tests.adapter.incremental.test_incremental_on_schema_change import (
3+
BaseIncrementalOnSchemaChange,
4+
)
5+
from dbt.tests.adapter.incremental.test_incremental_predicates import BaseIncrementalPredicates
16
from dbt.tests.adapter.incremental.test_incremental_unique_id import BaseIncrementalUniqueKey
27

38

49
class TestBaseIncrementalUniqueKeySQLServer(BaseIncrementalUniqueKey):
510
pass
11+
12+
13+
class TestIncrementalOnSchemaChangeSQLServer(BaseIncrementalOnSchemaChange):
14+
pass
15+
16+
17+
class TestIncrementalPredicatesDeleteInsertSQLServer(BaseIncrementalPredicates):
18+
pass
19+
20+
21+
class TestPredicatesDeleteInsertSQLServer(BaseIncrementalPredicates):
22+
@pytest.fixture(scope="class")
23+
def project_config_update(self):
24+
return {"models": {"+predicates": ["id != 2"], "+incremental_strategy": "delete+insert"}}

0 commit comments

Comments
 (0)