Files
pygeoapi/tests/cite
Tom Kralidis d9adbbd817 add support for TinyDB feature provider (#1724)
* add support for TinyDB as a feature provider (#1723)

* add tests

* update CITE setup

* add/update docs

* update sample CITE config

* update copyright year

* reorder imports

* fix formatting

* delineate features/records via overloading

* remove now unused test data

* move CITE data to tests/data

* fix ref

* remove HYDAT from GitHub Actions

* remove print statement
2024-07-16 11:40:50 -04:00
..

CITE testing for OGC API capabilities

  • OGC API - Features
  • OGC API - Processes

Test data

OGC API - Features

Test data used is in tests/data/canada-hydat-daily-mean-02HC003.tinydb

OGC API - Processes

The hello-world test process that is provided with pygeoapi by default is used.

Process job management is configured in server.manager in support of asynchronous testing.

Running

# install pygeoapi as per https://pygeoapi.io/#install-in-5-minutes
# the service needs to run with HTTP 1.1 support, so let's install gunicorn
# remove job manager
rm -f /tmp/pygeoapi-process-manager.db*
pip3 install gunicorn
cd tests/cite
. cite.env
pygeoapi openapi generate $PYGEOAPI_CONFIG --output-file $PYGEOAPI_OPENAPI
gunicorn pygeoapi.flask_app:APP -b 0.0.0.0:5001 --access-logfile '-'