Skip to content

Commit bf39f8b

Browse files
committed
perf(sqlalchemy-bigquery): optimize system test setup, DB-API retries, and compliance suite scope
1 parent 3ad64a5 commit bf39f8b

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

packages/sqlalchemy-bigquery/tests/sqlalchemy_dialect_compliance/conftest.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,3 @@ def pytest_sessionfinish(session):
8282
_pytest_sessionfinish(session)
8383
with contextlib.closing(google.cloud.bigquery.Client()) as client:
8484
client.delete_dataset(dataset_id, delete_contents=True, not_found_ok=True)
85-
for dataset in client.list_datasets():
86-
if prefixer.should_cleanup(dataset.dataset_id):
87-
client.delete_dataset(dataset, delete_contents=True, not_found_ok=True)

packages/sqlalchemy-bigquery/tests/system/conftest.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,6 @@ def cleanup_extra_tables(bigquery_client, bigquery_dataset):
142142
bigquery_client.delete_table(table)
143143

144144

145-
@pytest.fixture(scope="session", autouse=True)
146-
def cleanup_datasets(bigquery_client: bigquery.Client):
147-
for dataset in bigquery_client.list_datasets():
148-
if prefixer.should_cleanup(dataset.dataset_id):
149-
bigquery_client.delete_dataset(
150-
dataset, delete_contents=True, not_found_ok=True
151-
)
152145

153146

154147
@pytest.fixture(scope="session")

0 commit comments

Comments
 (0)