opendatateam / udata-ckan

CKAN integration for udata
2 stars 2 forks source link

Refactor tests using mocks instead of a real CKAN catalog #245

Closed maudetes closed 1 year ago

maudetes commented 1 year ago

Fix https://github.com/etalab/data.gouv.fr/issues/1065

Instead of using more recent images for CKAN as well as a custom udata/ckan image, we suggest to mock results returned by CKAN directly. Indeed, starting CKAN catalogs seem overkill and harder to maintain, just for tests on its exposition.

When testing filters, we only make sure the correct url are built based on filters.

Target is #243. The published and created error should be fixed there.