Skip to content

Commit bc8e187

Browse files
committed
[skip ci] Migrate conformance tests to explicit catalog initialization
1 parent 5f2d85a commit bc8e187

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tests/test_official_conformance.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ def _assert_expected_catalog(database_url: str, dataset_name: str, expected: dic
226226
def _assert_round_trip(
227227
*, fixture: dict, source: Path, database_url: str, tmp_path: Path, profile: str,
228228
) -> None:
229+
openstatspec.initialize_catalog(database_url=database_url)
229230
assert fixture["directions"] == ["import", "export", "semantic_round_trip"]
230231
assert set(fixture["expects"]) <= SEMANTIC_EXPECTATIONS | CATALOG_EXPECTATIONS
231232
token = uuid4().hex[:10]
@@ -295,6 +296,7 @@ def test_official_manifest_round_trips_through_server_profiles(
295296
def _assert_official_preflight_failure(
296297
*, database_url: str, profile: str, tmp_path: Path,
297298
) -> None:
299+
openstatspec.initialize_catalog(database_url=database_url)
298300
fixture = next(
299301
item for item in _manifest()["fixtures"] if item["id"] == "preflight-failure"
300302
)

0 commit comments

Comments
 (0)