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:04.910632+00:00',
- 'default_args': '{}',
+ 'default_args': '{\n "since": null\n}',
'default_queue': 'low',
'description': 'Test description',
'id': '878ddaae-d15d-4218-9d1f-8385b5644378',
'links': {'runs': 'https://127.0.0.1:5000/api/jobs/878ddaae-d15d-4218-9d1f-8385b5644378/runs',
'self': 'https://127.0.0.1:5000/api/jobs/878ddaae-d15d-4218-9d1f-8385b5644378',
'self_admin_html': 'https://127.0.0.1:5000/administration/jobs/878ddaae-d15d-4218-9d1f-8385b5644378'},
'schedule': {'hours': 4, 'type': 'interval'},
'task': 'update_expired_embargos',
'title': 'Test job',
'updated': '2024-10-10T20:44:04.910636+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:05.144093+00:00',
- 'default_args': '{}',
+ 'default_args': '{\n "since": null\n}',
'default_queue': 'celery',
'description': None,
'id': '7cef5e58-b298-4f80-bfc6-3329a1f0c8b6',
'links': {'runs': 'https://127.0.0.1:5000/api/jobs/7cef5e58-b298-4f80-bfc6-3329a1f0c8b6/runs',
'self': 'https://127.0.0.1:5000/api/jobs/7cef5e58-b298-4f80-bfc6-3329a1f0c8b6',
'self_admin_html': 'https://127.0.0.1:5000/administration/jobs/7cef5e58-b298-4f80-bfc6-3329a1f0c8b6'},
'schedule': None,
'task': 'update_expired_embargos',
'title': 'Test minimal job',
'updated': '2024-10-10T20:44:05.144099+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:05.203871+00:00',
- 'default_args': '{}',
+ 'default_args': '{\n "since": null\n}',
'default_queue': 'celery',
'description': 'Test updated description',
'id': '48a10fab-835a-4561-a4a4-75b61b192ddd',
'links': {'runs': 'https://127.0.0.1:5000/api/jobs/48a10fab-835a-4561-a4a4-75b61b192ddd/runs',
'self': 'https://127.0.0.1:5000/api/jobs/48a10fab-835a-4561-a4a4-75b61b192ddd',
'self_admin_html': 'https://127.0.0.1:5000/administration/jobs/48a10fab-835a-4561-a4a4-75b61b192ddd'},
'schedule': {'hours': 2, 'type': 'interval'},
'task': 'update_expired_embargos',
'title': 'Test updated job',
'updated': '2024-10-10T20:44:05.218281+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:05.267779+00:00',
- 'default_args': '{}',
+ 'default_args': '{\n "since": null\n}',
'default_queue': 'low',
'description': None,
'id': 'a96e85e4-c2c3-43f2-8758-c432d858f1e9',
'last_run': {'title': 'Manual run'},
'last_runs': {'cancelled': {},
'cancelling': {},
'failed': {},
'queued': {},
'running': {},
'success': {},
'warning': {}},
'links': {'runs': 'https://127.0.0.1:5000/api/jobs/a96e85e4-c2c3-43f2-8758-c432d858f1e9/runs',
'self': 'https://127.0.0.1:5000/api/jobs/a96e85e4-c2c3-43f2-8758-c432d858f1e9',
'self_admin_html': 'https://127.0.0.1:5000/administration/jobs/a96e85e4-c2c3-43f2-8758-c432d858f1e9'},
'schedule': {'hours': 4, 'type': 'interval'},
'task': 'update_expired_embargos',
'title': 'Test interval job',
'updated': '2024-10-10T20:44:05.267783+00:00',
}
|
Run tests
Process completed with exit code 1.
|
Loading