Skip to content

Commit

Permalink
Fix deferral for unit test type deteection
Browse files Browse the repository at this point in the history
  • Loading branch information
jtcohen6 committed Jan 31, 2024
1 parent 4f1fa63 commit 95a0f8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/dbt/parser/unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ def parse_unit_test_case(self, test_case: UnitTestDefinition):
"fqn": original_input_node.fqn,
"checksum": FileHash.empty(),
"raw_code": self._build_fixture_raw_code(given.rows, None),
"defer_relation": original_input_node.defer_relation,
}

if original_input_node.resource_type in (
Expand Down
2 changes: 1 addition & 1 deletion dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
git+https://github.com/dbt-labs/dbt-adapters.git@main
git+https://github.com/dbt-labs/dbt-adapters.git@jerco/support-deferral-refactor
black==23.3.0
bumpversion
ddtrace==2.1.7
Expand Down

0 comments on commit 95a0f8e

Please sign in to comment.