job: refactor args #222
Annotations
5 errors
Run tests:
tests/resources/test_resources.py#L52
test_simple_flow
assert {'active': Fa...': 'low', ...} == {'active': Fa...': 'low', ...}
Omitting 10 identical items, use -vv to show
Differing items:
{'default_args': '{\n "since": null\n}'} != {'default_args': '{}'}
Full diff:
{
'active': False,
'created': '2024-10-10T20:44:19.507348+00:00',
- 'default_args': '{}',
+ 'default_args': '{\n "since": null\n}',
'default_queue': 'low',
'description': 'Test description',
'id': 'dcb12aaf-b8fc-4952-9b7b-d22e3691db06',
'links': {'runs': 'https://127.0.0.1:5000/api/jobs/dcb12aaf-b8fc-4952-9b7b-d22e3691db06/runs',
'self': 'https://127.0.0.1:5000/api/jobs/dcb12aaf-b8fc-4952-9b7b-d22e3691db06',
'self_admin_html': 'https://127.0.0.1:5000/administration/jobs/dcb12aaf-b8fc-4952-9b7b-d22e3691db06'},
'schedule': {'hours': 4, 'type': 'interval'},
'task': 'update_expired_embargos',
'title': 'Test job',
'updated': '2024-10-10T20:44:19.507355+00:00',
}
|
Run tests:
tests/resources/test_resources.py#L214
test_jobs_create
assert {'active': Tr...'celery', ...} == {'active': Tr...'celery', ...}
Omitting 10 identical items, use -vv to show
Differing items:
{'default_args': '{\n "since": null\n}'} != {'default_args': '{}'}
Full diff:
{
'active': True,
'created': '2024-10-10T20:44:19.736846+00:00',
- 'default_args': '{}',
+ 'default_args': '{\n "since": null\n}',
'default_queue': 'celery',
'description': None,
'id': '1735dad5-dc04-42e7-961e-4626d472da94',
'links': {'runs': 'https://127.0.0.1:5000/api/jobs/1735dad5-dc04-42e7-961e-4626d472da94/runs',
'self': 'https://127.0.0.1:5000/api/jobs/1735dad5-dc04-42e7-961e-4626d472da94',
'self_admin_html': 'https://127.0.0.1:5000/administration/jobs/1735dad5-dc04-42e7-961e-4626d472da94'},
'schedule': None,
'task': 'update_expired_embargos',
'title': 'Test minimal job',
'updated': '2024-10-10T20:44:19.736856+00:00',
}
|
Run tests:
tests/resources/test_resources.py#L298
test_jobs_update
assert {'active': Fa...'celery', ...} == {'active': Fa...'celery', ...}
Omitting 10 identical items, use -vv to show
Differing items:
{'default_args': '{\n "since": null\n}'} != {'default_args': '{}'}
Full diff:
{
'active': False,
'created': '2024-10-10T20:44:19.806321+00:00',
- 'default_args': '{}',
+ 'default_args': '{\n "since": null\n}',
'default_queue': 'celery',
'description': 'Test updated description',
'id': 'f50a011f-1598-4216-9a9a-bc9c9be8d908',
'links': {'runs': 'https://127.0.0.1:5000/api/jobs/f50a011f-1598-4216-9a9a-bc9c9be8d908/runs',
'self': 'https://127.0.0.1:5000/api/jobs/f50a011f-1598-4216-9a9a-bc9c9be8d908',
'self_admin_html': 'https://127.0.0.1:5000/administration/jobs/f50a011f-1598-4216-9a9a-bc9c9be8d908'},
'schedule': {'hours': 2, 'type': 'interval'},
'task': 'update_expired_embargos',
'title': 'Test updated job',
'updated': '2024-10-10T20:44:19.823813+00:00',
}
|
Run tests:
tests/resources/test_resources.py#L315
test_jobs_search
assert {'active': Tr...': 'low', ...} == {'active': Tr...': 'low', ...}
Omitting 12 identical items, use -vv to show
Differing items:
{'default_args': '{\n "since": null\n}'} != {'default_args': '{}'}
Full diff:
{
'active': True,
'created': '2024-10-10T20:44:19.882203+00:00',
- 'default_args': '{}',
+ 'default_args': '{\n "since": null\n}',
'default_queue': 'low',
'description': None,
'id': '75962a6c-fc07-4480-b134-b10df861cd15',
'last_run': {'title': 'Manual run'},
'last_runs': {'cancelled': {},
'cancelling': {},
'failed': {},
'queued': {},
'running': {},
'success': {},
'warning': {}},
'links': {'runs': 'https://127.0.0.1:5000/api/jobs/75962a6c-fc07-4480-b134-b10df861cd15/runs',
'self': 'https://127.0.0.1:5000/api/jobs/75962a6c-fc07-4480-b134-b10df861cd15',
'self_admin_html': 'https://127.0.0.1:5000/administration/jobs/75962a6c-fc07-4480-b134-b10df861cd15'},
'schedule': {'hours': 4, 'type': 'interval'},
'task': 'update_expired_embargos',
'title': 'Test interval job',
'updated': '2024-10-10T20:44:19.882212+00:00',
}
|
Run tests
Process completed with exit code 1.
|
Loading