Skip to content

Commit

Permalink
remove reference to node.deffered in seed assertion for clone test (#194
Browse files Browse the repository at this point in the history
)
  • Loading branch information
colin-rogers-dbt committed May 2, 2024
1 parent 0a4c9f0 commit df393ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .changes/unreleased/Fixes-20240502-150038.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Fixes
body: Update Clone test to reflect core change removing `deferred` attribute from
nodes
time: 2024-05-02T15:00:38.882727-07:00
custom:
Author: colin-rogers-dbt
Issue: "194"
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,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 Expand Up @@ -214,6 +211,7 @@ def test_clone_same_target_and_state(self, project, unique_schema, other_schema)

clone_args = [
"clone",
"--defer",
"--state",
"target",
]
Expand Down

0 comments on commit df393ae

Please sign in to comment.