From 04df3dcb1d8aeb83f0867549b47652bd60dd297f Mon Sep 17 00:00:00 2001 From: Erik Reid <erik.reid@geant.org> Date: Thu, 4 Jun 2020 21:46:20 +0200 Subject: [PATCH] pep8 --- test/test_job_routes.py | 73 ++++++++++++++++++++++++++++++++++------- 1 file changed, 61 insertions(+), 12 deletions(-) diff --git a/test/test_job_routes.py b/test/test_job_routes.py index 6e9127d1..33bbde51 100644 --- a/test/test_job_routes.py +++ b/test/test_job_routes.py @@ -55,6 +55,7 @@ TASK_LOG_SCHEMA = { "additionalProperties": False } + def backend_db(): return _get_redis({ 'redis': { @@ -277,48 +278,96 @@ def test_job_log(client): 'type': 'task-infox', 'uuid': 'AAAB'}, 'joblog:CCCC:task-received': { - 'type': 'task-received', 'uuid': 'CCCC', 'name': 'xyz', 'args': ['z', 1]}, + 'type': 'task-received', + 'uuid': 'CCCC', + 'name': 'xyz', + 'args': ['z', 1] + }, 'joblog:CCCC:task-started': { 'type': 'task-started', 'uuid': 'CCCC'}, 'joblog:CCCC:task-succeeded': { 'type': 'task-succeeded', 'uuid': 'CCCC'}, 'joblog:TTTT:task-received': { - 'type': 'task-received', 'uuid': 'TTTT', 'name': 'xyz', 'args': ['q', 123]}, + 'type': 'task-received', + 'uuid': 'TTTT', + 'name': 'xyz', + 'args': ['q', 123] + }, 'joblog:TTTT:task-started': { 'type': 'task-started', 'uuid': 'TTTT'}, 'joblog:TTTT:task-failed': { 'type': 'task-failed', 'uuid': 'TTTT'}, 'joblog:SSSS1:task-received': { - 'type': 'task-received', 'uuid': 'SSSS', 'name': 'xyz', 'args': ['q', 123]}, + 'type': 'task-received', + 'uuid': 'SSSS', + 'name': 'xyz', + 'args': ['q', 123] + }, 'joblog:SSSS1:task-started': { 'type': 'task-started', 'uuid': 'SSSS'}, 'joblog:SSSS2:task-received': { - 'type': 'task-received', 'uuid': 'SSSS2', 'name': 'xyz', 'args': ['q', 123]}, + 'type': 'task-received', + 'uuid': 'SSSS2', + 'name': 'xyz', + 'args': ['q', 123] + }, 'joblog:SSSS2:task-started': { 'type': 'task-started', 'uuid': 'SSSS2'}, 'joblog:SSSS3:task-received': { - 'type': 'task-received', 'uuid': 'SSSS3', 'name': 'xyz', 'args': ['q', 123]}, + 'type': 'task-received', + 'uuid': 'SSSS3', + 'name': 'xyz', + 'args': ['q', 123] + }, 'joblog:SSSS3:task-started': { 'type': 'task-started', 'uuid': 'SSSS3'}, 'joblog:BBBB:task-info:99': { - 'type': 'task-info', 'uuid': 'BBBB', 'clock': 99, 'message': 'x'}, + 'type': 'task-info', + 'uuid': 'BBBB', + 'clock': 99, + 'message': 'x' + }, 'joblog:BBBB:task-info:999': { - 'type': 'task-info', 'uuid': 'BBBB', 'clock': 999, 'message': 'x'}, + 'type': 'task-info', + 'uuid': 'BBBB', + 'clock': 999, + 'message': 'x' + }, 'joblog:AAAA:task-warning:88': { - 'type': 'task-warning', 'uuid': 'AAAA', 'clock': 88, 'message': 'x'}, + 'type': 'task-warning', + 'uuid': 'AAAA', + 'clock': 88, + 'message': 'x' + }, 'joblog:AAAA:task-warning:888': { - 'type': 'task-warning', 'uuid': 'AAAA', 'clock': 888, 'message': 'x'}, + 'type': 'task-warning', + 'uuid': 'AAAA', + 'clock': 888, + 'message': 'x' + }, 'joblog:AAAA:task-error:77': { - 'type': 'task-error', 'uuid': 'AAAA', 'clock': 77, 'message': 'x'}, + 'type': 'task-error', + 'uuid': 'AAAA', + 'clock': 77, + 'message': 'x' + }, 'joblog:AAAA:task-error:777': { - 'type': 'task-error', 'uuid': 'AAAA', 'clock': 777, 'message': 'x'}, + 'type': 'task-error', + 'uuid': 'AAAA', + 'clock': 777, + 'message': 'x' + }, 'joblog:AAAA:task-error:7777': { - 'type': 'task-error', 'uuid': 'AAAA', 'clock': 7777, 'message': 'x'} + 'type': 'task-error', + 'uuid': 'AAAA', + 'clock': 7777, + 'message': 'x' + } } -- GitLab