Make test fail when it should (behave like the real app)
Manually commit the db session
Merge pull request #872 from PyBossa/issue-871-task-redundancy

Issue 871 task redundancy
Merge branch 'master' into issue-repositories

* master:
  Manually commit the db session
  Make test fail when it should (behave like the real app)
Use repositories to update task redundancy and state
Create new method in tasks repository to update task state with raw SQL