diff --git a/core/dbt/parser/unit_tests.py b/core/dbt/parser/unit_tests.py index fc6a7ef406d..47240dc8348 100644 --- a/core/dbt/parser/unit_tests.py +++ b/core/dbt/parser/unit_tests.py @@ -160,12 +160,15 @@ def parse_unit_test_case(self, test_case: UnitTestDefinition): defer_relation=original_input_node.defer_relation, ) - if not resource_type == NodeType.Model: - continue if original_input_node.version: input_node.version = original_input_node.version if original_input_node.latest_version: input_node.latest_version = original_input_node.latest_version + elif resource_type in (NodeType.Seed, NodeType.Snapshot): + input_node = ModelNode( + **common_fields, + defer_relation=original_input_node.defer_relation, + ) elif resource_type == NodeType.Source: # We are reusing the database/schema/identifier from the original source,