Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiannucci committed Nov 20, 2024
1 parent 8f55422 commit f6f671c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_cf_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ def test_cf_metadata_query(cf_client):
assert data["extent"]["spatial"]["crs"] == "EPSG:4326", "Spatial CRS is incorrect"


def test_cf_metadata_query_temp_smoke_test(cf_client):
response = cf_client.get("/datasets/temp/edr/")
assert response.status_code == 200, "Response did not return successfully"
data = response.json()

assert data["id"] == "temp", "The id should be temp"
for key in ("title", "description", "crs", "extent", "output_formats", "data_queries"):
assert key in data, f"Key {key} is not a top level key in the metadata response"


def test_cf_position_query(cf_client, cf_air_dataset, cf_temp_dataset):
x = 204
y = 44
Expand Down

0 comments on commit f6f671c

Please sign in to comment.