Commit 9bdde403 authored by Denis Laxalde's avatar Denis Laxalde
Browse files

[doc] Explain tests setup

parent 359eb926e733
...@@ -24,3 +24,21 @@ entity in CubicWeb. This is handled by the `LinkResourceToDatasetHook` hook, ...@@ -24,3 +24,21 @@ entity in CubicWeb. This is handled by the `LinkResourceToDatasetHook` hook,
which is abstract and should thus subclass by setting its `rtype` attribute. which is abstract and should thus subclass by setting its `rtype` attribute.
See ``test/data`` for a minimal example. See ``test/data`` for a minimal example.
Testing
-------
Testing this cube requires a running CKAN instance with a (dedicated)
organization and a user with editors permission in the organization.
Corresponding information are expected in the `test/ckanconfig.py` file.
::
baseurl = '<url-of-ckan-instance>'
organization = '<organization-name>'
apikey = '<api-key-of-user-with-editors-permissions-on-organization>'
Note that, since CKAN does not expose an API function to purge datasets, we
can only *delete* them in tests. So, one has to manually purge test datasets
from the CKAN at `<baseurl>/ckan-admin/trash`.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment