developmentseed / tipgstac

[DEMO] TiPG + PgSTAC
MIT License
6 stars 1 forks source link

add tests #2

Closed vincentsarago closed 10 months ago

vincentsarago commented 10 months ago

🤔 locally I'm getting a PgSTAC issue

ERROR    tipg.errors:errors.py:98 function search_query(jsonb) does not exist
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
NoneType: None

This is happening for the /items endpoint

response = app.get("/collections/noaa-emergency-response/items")
assert response.status_code == 200
assert response.headers["content-type"] == "application/geo+json"

response = app.get("/collections/noaa-emergency-response/items?f=html")
assert response.status_code == 200
assert "Collection Items: noaa-emergency-response" in response.text

the error message remind me of https://github.com/stac-utils/pgstac/issues/182 🤔