Changeset View
Changeset View
Standalone View
Standalone View
swh/web/tests/common/test_origin_save.py
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | expected_result = ( | ||||
"type": task["type"], | "type": task["type"], | ||||
"arguments": task["arguments"], | "arguments": task["arguments"], | ||||
"id": task["id"], | "id": task["id"], | ||||
"backend_id": task_run["backend_id"], | "backend_id": task_run["backend_id"], | ||||
"scheduled": task_run["scheduled"], | "scheduled": task_run["scheduled"], | ||||
"started": task_run["started"], | "started": task_run["started"], | ||||
"ended": task_run["ended"], | "ended": task_run["ended"], | ||||
"status": task_run["status"], | "status": task_run["status"], | ||||
"visit_status": sor.visit_status, | |||||
} | } | ||||
if not task_archived | if not task_archived | ||||
else {} | else {} | ||||
) | ) | ||||
if es_available and not task_archived: | if es_available and not task_archived: | ||||
expected_result.update( | expected_result.update( | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 211 Lines • Show Last 20 Lines |