Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dchhabda committed Nov 10, 2022
1 parent 43765bc commit dcb2396
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -9602,9 +9602,9 @@ def test_reserve_task_all_reserved_tasks_consumed(self, get_task_category_lock):
)
)
)
get_task_category_lock.side_effect = [[
get_task_category_lock.return_value = [], [], [
"reserve_task:project:{}:category:field_1:value1:field_2:value2:user:{}:task:454".format(project.id, admin.id)
], []]
]

task = TaskFactory.create_batch(3, project=project, info=dict(x=1, y=2))
res = self.app.get('api/project/%s/newtask' % project.id)
Expand Down

0 comments on commit dcb2396

Please sign in to comment.