Skip to content

Commit

Permalink
Updating tests for 1.8.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
prdpsvs committed May 19, 2024
1 parent 1867753 commit 43a06a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 0 additions & 2 deletions tests/functional/adapter/test_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
description: hello
constraints:
- type: not_null
- type: primary_key
- type: unique
- type: check
expression: (id > 0)
Expand Down Expand Up @@ -92,7 +91,6 @@
description: hello
constraints:
- type: not_null
- type: primary_key
- type: check
expression: (id > 0)
tests:
Expand Down
3 changes: 0 additions & 3 deletions tests/functional/adapter/test_dbt_clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,14 @@ def copy_state(self, project_root):
def run_and_save_state(self, project_root, with_snapshot=False):
results = run_dbt(["seed"])
assert len(results) == 1
assert not any(r.node.deferred for r in results)
results = run_dbt(["run"])
assert len(results) == 2
assert not any(r.node.deferred for r in results)
results = run_dbt(["test"])
assert len(results) == 2

if with_snapshot:
results = run_dbt(["snapshot"])
assert len(results) == 1
assert not any(r.node.deferred for r in results)

# copy files
self.copy_state(project_root)
Expand Down
7 changes: 3 additions & 4 deletions tests/functional/adapter/test_query_comment.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import json

from dbt.tests.adapter.query_comment.test_query_comment import (
BaseEmptyQueryComments,
BaseMacroArgsQueryComments,
Expand All @@ -6,8 +8,6 @@
BaseNullQueryComments,
BaseQueryComments,
)
from dbt.version import __version__ as dbt_version
import json


# Tests #
Expand All @@ -20,11 +20,10 @@ class TestMacroQueryComments(BaseMacroQueryComments):


class TestMacroArgsQueryComments(BaseMacroArgsQueryComments):
def test_matches_comment(self, project) -> bool:
def test_matches_comment(self, project):
logs = self.run_get_json()
expected_dct = {
"app": "dbt++",
"dbt_version": dbt_version,
"macro_version": "0.1.0",
"message": f"blah: {project.adapter.config.target_name}",
}
Expand Down

0 comments on commit 43a06a9

Please sign in to comment.