Skip to content

Commit

Permalink
Test 200 limit is not respected.
Browse files Browse the repository at this point in the history
  • Loading branch information
teleyinex committed Mar 14, 2017
1 parent d03d263 commit 5b4fb95
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/test_sched.py
Expand Up @@ -89,6 +89,17 @@ def test_anonymous_01_newtask_limits(self):
task_ids = set(task_ids)
assert len(task_ids) == 100, task_ids

url = 'api/project/%s/newtask?limit=200' % project.id
res = self.app.get(url)
data = json.loads(res.data)
assert len(data) == 100
for t in data:
assert t['info'] == 'hola', t
task_ids = [task['id'] for task in data]
task_ids = set(task_ids)
assert len(task_ids) == 100, task_ids


@with_context
def test_anonymous_02_gets_different_tasks(self):
""" Test SCHED newtask returns N different Tasks for the Anonymous User"""
Expand Down

0 comments on commit 5b4fb95

Please sign in to comment.