diff --git a/.changes/unreleased/Fixes-20240502-150038.yaml b/.changes/unreleased/Fixes-20240502-150038.yaml new file mode 100644 index 00000000..ed80bfc5 --- /dev/null +++ b/.changes/unreleased/Fixes-20240502-150038.yaml @@ -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" diff --git a/dbt-tests-adapter/dbt/tests/adapter/dbt_clone/test_dbt_clone.py b/dbt-tests-adapter/dbt/tests/adapter/dbt_clone/test_dbt_clone.py index 61472d1a..f59956c1 100644 --- a/dbt-tests-adapter/dbt/tests/adapter/dbt_clone/test_dbt_clone.py +++ b/dbt-tests-adapter/dbt/tests/adapter/dbt_clone/test_dbt_clone.py @@ -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) @@ -214,6 +211,7 @@ def test_clone_same_target_and_state(self, project, unique_schema, other_schema) clone_args = [ "clone", + "--defer", "--state", "target", ]