Skip to content
Snippets Groups Projects
Commit 04df3dcb authored by Erik Reid's avatar Erik Reid
Browse files

pep8

parent 1c9828c6
No related branches found
No related tags found
No related merge requests found
......@@ -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'
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment