Skip to content

Commit

Permalink
fix: update ogc_tests so they can run properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
lalewis1 committed Sep 24, 2024
1 parent ed17101 commit 6eb3116
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_ogc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_store() -> Store:
# Create a new pyoxigraph Store
store = Store()

file = Path("../test_data/spaceprez.ttl")
file = Path("../test_data/ogc_features.ttl")
store.load(file.read_bytes(), "text/turtle")

return store
Expand All @@ -39,6 +39,7 @@ def override_get_data_repo():
app.dependency_overrides[get_data_repo] = override_get_data_repo

with TestClient(app, backend_options={"loop_factory": asyncio.new_event_loop}) as c:
c.base_url = "http://localhost:8000/catalogs/ex:DemoCatalog/collections/ex:GeoDataset/features"
yield c

# Remove the override to ensure subsequent tests are unaffected
Expand Down

0 comments on commit 6eb3116

Please sign in to comment.