[ckan-changes] [okfn/ckan] eb6fd0: [#1117] Add factory_boy to action tests
GitHub
noreply at github.com
Wed Jul 31 14:24:38 UTC 2013
Branch: refs/heads/1117-start-new-test-suite
Home: https://github.com/okfn/ckan
Commit: eb6fd0a5ab53f60b0a43a797abcd62a8a45d84f0
https://github.com/okfn/ckan/commit/eb6fd0a5ab53f60b0a43a797abcd62a8a45d84f0
Author: Sean Hammond <seanhammond at lavabit.com>
Date: 2013-07-30 (Tue, 30 Jul 2013)
Changed paths:
A ckan/new_tests/factories.py
M ckan/new_tests/logic/action/test_update.py
Log Message:
-----------
[#1117] Add factory_boy to action tests
Add a new module ckan.new_tests.factories with (so far) just a User factory
class that uses the factory_boy library to create CKAN users.
Update the ckan.new_tests.logic.action.test_update tests to use this
factory instead of ckan.new_tests.data.
Still need to update the rest of the new tests to use the factory (and
also add factories for other classes such as dataset etc.), then data.py
can be deleted.
Still need to add factory_boy to dev-requirements.txt.
Commit: c556fabfd5c43b3ff0e775462b0831f1d59cee99
https://github.com/okfn/ckan/commit/c556fabfd5c43b3ff0e775462b0831f1d59cee99
Author: Sean Hammond <seanhammond at lavabit.com>
Date: 2013-07-30 (Tue, 30 Jul 2013)
Changed paths:
M ckan/new_tests/logic/auth/test_update.py
Log Message:
-----------
[#1117] Use factory in auth/test_update.py
Instead of data.py.
Commit: a5fe9e6e231dbc64f729427323c677d415c60744
https://github.com/okfn/ckan/commit/a5fe9e6e231dbc64f729427323c677d415c60744
Author: Sean Hammond <seanhammond at lavabit.com>
Date: 2013-07-30 (Tue, 30 Jul 2013)
Changed paths:
M ckan/new_tests/factories.py
M ckan/new_tests/logic/test_validators.py
Log Message:
-----------
[#1117] Remove data.py from test_validators.py
Move the helper functions it was using into factories.py and make it use
that instead.
Commit: fe8eec0f4bde1f4b23d71d49584e434c78148d91
https://github.com/okfn/ckan/commit/fe8eec0f4bde1f4b23d71d49584e434c78148d91
Author: Sean Hammond <seanhammond at lavabit.com>
Date: 2013-07-30 (Tue, 30 Jul 2013)
Changed paths:
R ckan/new_tests/data.py
M ckan/new_tests/lib/navl/test_validators.py
Log Message:
-----------
[#1117] Use factories instead of data in navl/test_validators.py
So data.py is now unused and we can remove it.
Commit: 8481935e46dd473a64d9770b7c080be2edeb979f
https://github.com/okfn/ckan/commit/8481935e46dd473a64d9770b7c080be2edeb979f
Author: Sean Hammond <seanhammond at lavabit.com>
Date: 2013-07-31 (Wed, 31 Jul 2013)
Changed paths:
M ckan/new_tests/logic/test_validators.py
Log Message:
-----------
[#1117] Add some helper decorators to validators tests
Add a bunch of helper decorators at the top of the file, and change the
test methods below to use them.
Commit: 1f9540162c1dee8609f49fb853601d4d712ee80a
https://github.com/okfn/ckan/commit/1f9540162c1dee8609f49fb853601d4d712ee80a
Author: Sean Hammond <seanhammond at lavabit.com>
Date: 2013-07-31 (Wed, 31 Jul 2013)
Changed paths:
R ckan/new_tests/data.py
A ckan/new_tests/factories.py
M ckan/new_tests/lib/navl/test_validators.py
M ckan/new_tests/logic/action/test_update.py
M ckan/new_tests/logic/auth/test_update.py
M ckan/new_tests/logic/test_validators.py
Log Message:
-----------
Merge branch '1117-factory_boy' into 1117-start-new-test-suite
Compare: https://github.com/okfn/ckan/compare/d8dfa43664da...1f9540162c1d
More information about the ckan-changes
mailing list