Skip to content

Commit

Permalink
dbt clone must specify --defer
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 committed Jan 31, 2024
1 parent 48f244f commit 4f1fa63
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/adapter/dbt/tests/adapter/dbt_clone/test_dbt_clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,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 @@ -226,6 +223,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 4f1fa63

Please sign in to comment.