geopython / pycsw

pycsw is an OGC CSW server implementation written in Python. pycsw fully implements the OpenGIS Catalogue Service Implementation Specification [Catalogue Service for the Web]. Initial development started in 2010 (more formally announced in 2011). The project is certified OGC Compliant, and is an OGC Reference Implementation. pycsw allows for the publishing and discovery of geospatial metadata via numerous APIs (CSW 2/CSW 3, OpenSearch, OAI-PMH, SRU). Existing repositories of geospatial metadata can also be exposed, providing a standards-based metadata and catalogue component of spatial data infrastructures. pycsw is Open Source, released under an MIT license, and runs on all major platforms (Windows, Linux, Mac OS X). Please read the docs at https://pycsw.org/docs for more information.
https://pycsw.org
MIT License
206 stars 155 forks source link

Refactor some functional tests #875

Closed ricardogsilva closed 1 year ago

ricardogsilva commented 1 year ago

Overview

This PR refactors some tests and moves them from the unittests directory to functionaltests. It updates the testing docs in order to mention how to create tests for modern JSON-based standards, like OAREC.

Adding functional tests to recent JSON-based standards like OAREC and STAC API is a lot easier than the other XML-based standards and does not require using automatic test generation. As such, writing tests for these modern standards can simply be done by authoring a normal pytest module, with test case functions inside.

OAREC tests (including OAREC, OAREC transactions and OAREC virtual collections) and STAC API tests are now under tests/functionatests/suites/oarec and tests/functionaltests/suites/stac_api respectively.

Contributions and Licensing

(as per https://github.com/geopython/pycsw/blob/master/CONTRIBUTING.rst#contributions-and-licensing)

tomkralidis commented 1 year ago

Thanks @ricardogsilva!