[ckan-changes] [okfn/ckan] 252e95: [#1386] Add factories for Dataset and Resources
GitHub
noreply at github.com
Thu Dec 12 18:38:32 UTC 2013
Branch: refs/heads/1386-improve-factories
Home: https://github.com/okfn/ckan
Commit: 252e95918ee342058c2c8704752028096d665dbc
https://github.com/okfn/ckan/commit/252e95918ee342058c2c8704752028096d665dbc
Author: amercader <amercadero at gmail.com>
Date: 2013-12-12 (Thu, 12 Dec 2013)
Changed paths:
M ckan/new_tests/factories.py
Log Message:
-----------
[#1386] Add factories for Dataset and Resources
Commit: 56955c01c4588d4a7de955269f41bb4f514d4319
https://github.com/okfn/ckan/commit/56955c01c4588d4a7de955269f41bb4f514d4319
Author: amercader <amercadero at gmail.com>
Date: 2013-12-12 (Thu, 12 Dec 2013)
Changed paths:
M ckan/new_tests/factories.py
Log Message:
-----------
[#1386] Allow to define auth user when using factories
When creating an instance of the factory, users can provide an 'auth_user'
keyword argument with the name of the user that should perform the action.
If they don't provide the 'auth_user' argument the site user will be used
(this user is a sysadmin). If the action should be performed anonymously
(ie no logged in user), auth_user=None should be provided.
Note that the keyword argument could not be named 'user', as some action
functions use this same parameter.
Compare: https://github.com/okfn/ckan/compare/252e95918ee3^...56955c01c458
More information about the ckan-changes
mailing list