diff --git a/core/dbt/parser/generic_test_builders.py b/core/dbt/parser/generic_test_builders.py index 69c86853162..d6ff1ad7382 100644 --- a/core/dbt/parser/generic_test_builders.py +++ b/core/dbt/parser/generic_test_builders.py @@ -101,6 +101,7 @@ class TestBuilder(Generic[Testable]): "error_if", "fail_calc", "store_failures", + "store_failures_as", "meta", "database", "schema", @@ -242,6 +243,10 @@ def severity(self) -> Optional[str]: def store_failures(self) -> Optional[bool]: return self.config.get("store_failures") + @property + def store_failures_as(self) -> Optional[bool]: + return self.config.get("store_failures_as") + @property def where(self) -> Optional[str]: return self.config.get("where") @@ -294,6 +299,8 @@ def get_static_config(self): config["fail_calc"] = self.fail_calc if self.store_failures is not None: config["store_failures"] = self.store_failures + if self.store_failures_as is not None: + config["store_failures_as"] = self.store_failures_as if self.meta is not None: config["meta"] = self.meta if self.database is not None: