diff --git a/core/dbt/contracts/graph/model_config.py b/core/dbt/contracts/graph/model_config.py index 62664664ae9..2b9947d85d2 100644 --- a/core/dbt/contracts/graph/model_config.py +++ b/core/dbt/contracts/graph/model_config.py @@ -555,6 +555,8 @@ def validate(cls, data): @dataclass class TestConfig(NodeAndTestConfig): + __test__ = False + # this is repeated because of a different default schema: Optional[str] = field( default="dbt_test__audit", diff --git a/core/dbt/contracts/graph/nodes.py b/core/dbt/contracts/graph/nodes.py index 18a692c7018..aa11cbece97 100644 --- a/core/dbt/contracts/graph/nodes.py +++ b/core/dbt/contracts/graph/nodes.py @@ -930,6 +930,8 @@ def test_node_type(self): @dataclass class TestMetadata(dbtClassMixin, Replaceable): + __test__ = False + name: str # kwargs are the args that are left in the test builder after # removing configs. They are set from the test builder when diff --git a/core/dbt/graph/selector_methods.py b/core/dbt/graph/selector_methods.py index 44715b6f3a8..c73be57e0d2 100644 --- a/core/dbt/graph/selector_methods.py +++ b/core/dbt/graph/selector_methods.py @@ -437,6 +437,8 @@ def search(self, included_nodes: Set[UniqueId], selector: str) -> Iterator[Uniqu class TestNameSelectorMethod(SelectorMethod): + __test__ = False + def search(self, included_nodes: Set[UniqueId], selector: str) -> Iterator[UniqueId]: for node, real_node in self.parsed_nodes(included_nodes): if real_node.resource_type == NodeType.Test and hasattr(real_node, "test_metadata"): @@ -445,6 +447,8 @@ def search(self, included_nodes: Set[UniqueId], selector: str) -> Iterator[Uniqu class TestTypeSelectorMethod(SelectorMethod): + __test__ = False + def search(self, included_nodes: Set[UniqueId], selector: str) -> Iterator[UniqueId]: search_type: Type # continue supporting 'schema' + 'data' for backwards compatibility diff --git a/core/dbt/parser/schemas.py b/core/dbt/parser/schemas.py index a86de2e80f8..fbc95a73df7 100644 --- a/core/dbt/parser/schemas.py +++ b/core/dbt/parser/schemas.py @@ -651,6 +651,8 @@ def patch_node_properties(self, node, patch: "ParsedNodePatch"): # TestablePatchParser = seeds, snapshots class TestablePatchParser(NodePatchParser[UnparsedNodeUpdate]): + __test__ = False + def get_block(self, node: UnparsedNodeUpdate) -> TestBlock: return TestBlock.from_yaml_block(self.yaml, node)