Tests
There is a Docker compose configuration available in this repository to make it easier to run tests. The ckan image uses the Dockerfile in the docker/
folder.
To run the tests can be run against ckan 2.9.x and 2.10.x on Python3:
-
Build the required images:
docker-compose build
-
Then run the tests. The root of the repository is mounted into the ckan container as a volume by the Docker compose configuration, so you should only need to rebuild the ckan image if you change the extension's dependencies.
# run tests against ckan 2.9.x docker-compose run latest # run tests against ckan 2.10.x docker-compose run next
Note that the tests mock the DataCite API and therefore don't require an internet connection nor your DataCite credentials to run.