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.
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.
[x] I'd like to contribute [feature X|bugfix Y|docs|something else] to pycsw. I confirm that my contributions to pycsw will be compatible with the pycsw license guidelines at the time of contribution.
[x] I have already previously agreed to the pycsw Contributions and Licensing Guidelines
Overview
This PR refactors some tests and moves them from the
unittests
directory tofunctionaltests
. 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
andtests/functionaltests/suites/stac_api
respectively.Contributions and Licensing
(as per https://github.com/geopython/pycsw/blob/master/CONTRIBUTING.rst#contributions-and-licensing)