Skip to content

Commit

Permalink
add teardown to delta test class as it also builds tests on alt schema
Browse files Browse the repository at this point in the history
  • Loading branch information
McKnight-42 committed Oct 16, 2023
1 parent 56fa5da commit 40a4e66
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/functional/adapter/test_store_test_failures.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ def project_config_update(self):
},
}

@pytest.fixture(scope="function", autouse=True)
def teardown_method(self, project):
yield
with project.adapter.connection_named("__test"):
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_failure_with_delta(self, project):
self.run_tests_store_one_failure(project)
self.run_tests_store_failures_and_assert(project)
Expand Down

0 comments on commit 40a4e66

Please sign in to comment.