Skip to content

Commit

Permalink
tests for async operation
Browse files Browse the repository at this point in the history
ref:f698962180f1435ca83740153d094c5186c9b279
  • Loading branch information
tulinev committed Mar 19, 2021
1 parent 0f7b353 commit 0112b9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/test_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ def check_tasks(request, context):
} == parse_qs(urlparse(request.url).query)
imcoming_tasks = []
for t in request.json():
t.pop('__client_uuid', '')
assert '__client_uuid' in t
t.pop('__client_uuid')
imcoming_tasks.append(t)
assert tasks_map == imcoming_tasks
return operation_running_map
Expand Down
3 changes: 2 additions & 1 deletion tests/test_task_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@ def check_task_suites(request, context):
} == parse_qs(urlparse(request.url).query)
imcoming_task_suites = []
for t in request.json():
t.pop('__client_uuid', '')
assert '__client_uuid' in t
t.pop('__client_uuid')
imcoming_task_suites.append(t)
assert task_suites_map == imcoming_task_suites
return operation_running_map
Expand Down

0 comments on commit 0112b9d

Please sign in to comment.