Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
ckanpublish
Commits
5e3ef3b319cf
Commit
9bdde403
authored
Dec 18, 2014
by
Denis Laxalde
Browse files
[doc] Explain tests setup
parent
359eb926e733
Changes
1
Hide whitespace changes
Inline
Side-by-side
README
View file @
5e3ef3b3
...
@@ -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`.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment