Test for the case where a user has not participated in the first 10 tasks
Refactor
New test for issue #667
New test for update task.state when posting a valid task_run
Fixes to update the task.state
Improve unit testing
Fixes for new unit tests. Closes #667

This commit fixes the no more tasks bug. The solution has been to add a DB
trigger that automatically updates the task.state based on the number of
answers saved, when a post is commited.

This solution simplifies the code, plus reduces its complexity as now the
scheduler does not have to clean the candidate tasks, as they are already good
ones, because now the task.state is updated in real time, not when a user
requests a new task.
Add notifications to HipChat channel
Add a bit more of information
Fix typo
Fix an error in the test.
Increase coverage
Increase coverage
Auth and Anon users should not be allowed to modify task_runs
Fixes
Use context for testing auth
Merge pull request #677 from PyBossa/issue-667-no-more-tasks

Issue 667 no more tasks