Skip to content

Commit 43a06a9

Browse files
committed
Updating tests for 1.8.0 version
1 parent 1867753 commit 43a06a9

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

tests/functional/adapter/test_constraints.py

-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
description: hello
4545
constraints:
4646
- type: not_null
47-
- type: primary_key
4847
- type: unique
4948
- type: check
5049
expression: (id > 0)
@@ -92,7 +91,6 @@
9291
description: hello
9392
constraints:
9493
- type: not_null
95-
- type: primary_key
9694
- type: check
9795
expression: (id > 0)
9896
tests:

tests/functional/adapter/test_dbt_clone.py

-3
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,14 @@ def copy_state(self, project_root):
8484
def run_and_save_state(self, project_root, with_snapshot=False):
8585
results = run_dbt(["seed"])
8686
assert len(results) == 1
87-
assert not any(r.node.deferred for r in results)
8887
results = run_dbt(["run"])
8988
assert len(results) == 2
90-
assert not any(r.node.deferred for r in results)
9189
results = run_dbt(["test"])
9290
assert len(results) == 2
9391

9492
if with_snapshot:
9593
results = run_dbt(["snapshot"])
9694
assert len(results) == 1
97-
assert not any(r.node.deferred for r in results)
9895

9996
# copy files
10097
self.copy_state(project_root)

tests/functional/adapter/test_query_comment.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import json
2+
13
from dbt.tests.adapter.query_comment.test_query_comment import (
24
BaseEmptyQueryComments,
35
BaseMacroArgsQueryComments,
@@ -6,8 +8,6 @@
68
BaseNullQueryComments,
79
BaseQueryComments,
810
)
9-
from dbt.version import __version__ as dbt_version
10-
import json
1111

1212

1313
# Tests #
@@ -20,11 +20,10 @@ class TestMacroQueryComments(BaseMacroQueryComments):
2020

2121

2222
class TestMacroArgsQueryComments(BaseMacroArgsQueryComments):
23-
def test_matches_comment(self, project) -> bool:
23+
def test_matches_comment(self, project):
2424
logs = self.run_get_json()
2525
expected_dct = {
2626
"app": "dbt++",
27-
"dbt_version": dbt_version,
2827
"macro_version": "0.1.0",
2928
"message": f"blah: {project.adapter.config.target_name}",
3029
}

0 commit comments

Comments
 (0)