astrolabsoftware / fink-science-portal

Fink Science Portal
https://fink-portal.org
Apache License 2.0
7 stars 4 forks source link

Tests should check the number of columns via the API #578

Closed JulienPeloton closed 8 months ago

JulienPeloton commented 9 months ago

Current API tests such as

https://github.com/astrolabsoftware/fink-science-portal/blob/33809b9993e06eb8009db48a68e2e10d835907bd/tests/api_single_object_test.py#L91-L99

check the number of columns via a manual entry. Ideally, we should just call /api/v1/columns. This would naturally inform us of missing column definition in the schema.