From 0112b9d24d5c2a7d34eb12f447c20885ee34c95d Mon Sep 17 00:00:00 2001 From: Evgeny Tulin Date: Fri, 19 Mar 2021 22:38:09 +0300 Subject: [PATCH] tests for async operation ref:f698962180f1435ca83740153d094c5186c9b279 --- tests/test_task.py | 3 ++- tests/test_task_suite.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_task.py b/tests/test_task.py index a5b3e47c..d18d25e4 100644 --- a/tests/test_task.py +++ b/tests/test_task.py @@ -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 diff --git a/tests/test_task_suite.py b/tests/test_task_suite.py index ab5b513e..67868e8f 100644 --- a/tests/test_task_suite.py +++ b/tests/test_task_suite.py @@ -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