Skip to content

Commit

Permalink
New test configs (#3392)
Browse files Browse the repository at this point in the history
* New test configs: where, limit, warn_if, error_if

* update test task and tests

* fix flake8

* Update core/dbt/parser/schemas.py

Co-authored-by: Jeremy Cohen <[email protected]>

* Update core/dbt/parser/schema_test_builders.py

Co-authored-by: Jeremy Cohen <[email protected]>

* respond to some feedback

* add failures field

* add failures to results

* more feedback

* add some test coverage

* dev review feedback

Co-authored-by: Jeremy Cohen <[email protected]>

automatic commit by git-black, original commits:
  2388330
  2c40530
  • Loading branch information
Kyle Wigley authored and iknox-fa committed Feb 8, 2022
1 parent 9f65163 commit 20d9dc4
Showing 1 changed file with 1 addition and 3 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 @@ -432,9 +432,7 @@ def construct_config(self) -> str:
# this is the 'raw_sql' that's used in 'render_update' and execution
# of the test macro
def build_raw_sql(self) -> str:
return (
"{{{{ {macro}(**{kwargs_name}) }}}}{config}"
).format(
return ("{{{{ {macro}(**{kwargs_name}) }}}}{config}").format(
macro=self.macro_name(),
config=self.construct_config(),
kwargs_name=GENERIC_TEST_KWARGS_NAME,
Expand Down

0 comments on commit 20d9dc4

Please sign in to comment.