-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backport pr 803 to fix hanging artifact in test run (#812)
- Loading branch information
1 parent
bc300a6
commit 92ce022
Showing
1 changed file
with
14 additions
and
1 deletion.
There are no files selected for viewing
15 changes: 14 additions & 1 deletion
15
tests/functional/adapter/store_test_failures_tests/test_store_test_failures.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
import pytest | ||
from dbt.tests.adapter.store_test_failures_tests.test_store_test_failures import ( | ||
StoreTestFailuresBase, | ||
) | ||
|
||
from dbt.tests.adapter.store_test_failures_tests.test_store_test_failures import StoreTestFailuresBase | ||
|
||
TEST_AUDIT_SCHEMA_SUFFIX = "dbt_test__aud" | ||
|
||
|
||
class TestBigQueryStoreTestFailures(StoreTestFailuresBase): | ||
@pytest.fixture(scope="function", autouse=True) | ||
def teardown_method(self, project): | ||
yield | ||
relation = project.adapter.Relation.create( | ||
database=project.database, schema=f"{project.test_schema}_{TEST_AUDIT_SCHEMA_SUFFIX}" | ||
) | ||
|
||
project.adapter.drop_schema(relation) | ||
|
||
def test_store_and_assert(self, project): | ||
self.run_tests_store_one_failure(project) | ||
self.run_tests_store_failures_and_assert(project) |