Fix #984 - Improvements to Activity and ActivityIntermediator
authorJessica Tallon <jessica@megworld.co.uk>
Tue, 21 Oct 2014 10:44:11 +0000 (11:44 +0100)
committerJessica Tallon <jessica@megworld.co.uk>
Tue, 21 Oct 2014 10:44:11 +0000 (11:44 +0100)
commit5ddc85e071fd7adec6b922a03c2e8caa4bad3c5c
tree832007aa1223b14ea84e2a1235313381941a21a9
parenta806e4dcc4921fa309f83bce82b367a699dc9636
Fix #984 - Improvements to Activity and ActivityIntermediator

- Add unit tests to cover get and set methods on Activity
- Rewrite the set to remove set and use Session.flush instead
- Use sqlalchemy's validator instead of .save hack
mediagoblin/db/base.py
mediagoblin/db/models.py
mediagoblin/tests/test_modelmethods.py
mediagoblin/tests/tools.py