[ckan-changes] [okfn/ckan] 21429c: [#3005] Add tests for follow group API
GitHub
noreply at github.com
Tue Oct 23 17:51:55 UTC 2012
Branch: refs/heads/feature-3005-add-following-of-groups
Home: https://github.com/okfn/ckan
Commit: 21429c6b7a10c31e0ea0be4c378e7c496b534d73
https://github.com/okfn/ckan/commit/21429c6b7a10c31e0ea0be4c378e7c496b534d73
Author: Sean Hammond <seanhammond at lavabit.com>
Date: 2012-10-23 (Tue, 23 Oct 2012)
Changed paths:
M ckan/tests/functional/api/test_follow.py
Log Message:
-----------
[#3005] Add tests for follow group API
Also refactored some test methods to remove code duplication between
user, dataset and group follower tests.
I started getting DetachedInstanceErrors from SQLAlchemy. It happens
because the tests access the model directly and retain references to
model objects. No idea why it started happening now but wasn't happening
before. I've added an AttributeDict hack at the top of the file to
remove this without introducing too much noise in the diff. Will remove
the hack and fix it properly in a separate commit.
More information about the ckan-changes
mailing list