Skip to content

Commit

Permalink
Add documentation for macros/analyses
Browse files Browse the repository at this point in the history
Refactored parsing a bit to support the idea of:
 - macro patches (no columns)
 - node patches that don't get tests (analyses)


automatic commit by git-black, original commits:
  2388330
  b030b4e
  • Loading branch information
Jacob Beck authored and iknox-fa committed Feb 8, 2022
1 parent c032fff commit 011b43e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions core/dbt/parser/generic_test_builders.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,7 @@ def quote_columns(self) -> Optional[bool]:
return self.target.quote_columns

@classmethod
def from_yaml_block(
cls, src: YamlBlock, target: Testable
) -> 'TestBlock[Testable]':
def from_yaml_block(cls, src: YamlBlock, target: Testable) -> "TestBlock[Testable]":
return cls(
file=src.file,
data=src.data,
Expand Down
4 changes: 1 addition & 3 deletions core/dbt/parser/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,7 @@ def parse_from_dict(self, dct, validate=True) -> ParsedGenericTestNode:
ParsedGenericTestNode.validate(dct)
return ParsedGenericTestNode.from_dict(dct)

def parse_column_tests(
self, block: TestBlock, column: UnparsedColumn
) -> None:
def parse_column_tests(self, block: TestBlock, column: UnparsedColumn) -> None:
if not column.tests:
return

Expand Down

0 comments on commit 011b43e

Please sign in to comment.