Skip to content

Commit

Permalink
backport pr 803 to fix hanging artifact in test run
Browse files Browse the repository at this point in the history
  • Loading branch information
McKnight-42 committed Jul 10, 2023
1 parent 3251587 commit 7b7adac
Showing 1 changed file with 14 additions and 1 deletion.
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)

0 comments on commit 7b7adac

Please sign in to comment.