Job registry #204
Annotations
4 errors
Run tests:
tests/resources/test_resources.py#L81
test_simple_flow
AssertionError: assert {'active': Tr...': 'low', ...} == {'active': Tr...': 'low', ...}
Omitting 12 identical items, use -vv to show
Differing items:
{'last_run': {'title': 'Manual run'}} != {'last_run': {'queue': 'celery', 'title': 'Manual run'}}
Full diff:
{
'active': True,
'created': '2024-09-11T15:16:46.541817+00:00',
'default_args': '{}',
'default_queue': 'low',
'description': 'Test description',
'id': '13e2c30d-c3ba-4573-8167-e7a7fec485ee',
- 'last_run': {'queue': 'celery', 'title': 'Manual run'},
? -------------------
+ 'last_run': {'title': 'Manual run'},
'last_runs': {'cancelled': {},
'cancelling': {},
'failed': {},
'queued': {},
'running': {},
'success': {},
'warning': {}},
'links': {'runs': 'https://127.0.0.1:5000/api/jobs/13e2c30d-c3ba-4573-8167-e7a7fec485ee/runs',
'self': 'https://127.0.0.1:5000/api/jobs/13e2c30d-c3ba-4573-8167-e7a7fec485ee',
'self_admin_html': 'https://127.0.0.1:5000/administration/jobs/13e2c30d-c3ba-4573-8167-e7a7fec485ee'},
'schedule': {'hours': 4, 'type': 'interval'},
'task': 'update_expired_embargos',
'title': 'Test job',
'updated': '2024-09-11T15:16:46.568899+00:00',
}
|
Run tests:
tests/resources/test_resources.py#L315
test_jobs_search
AssertionError: assert {'active': Tr...': 'low', ...} == {'active': Tr...': 'low', ...}
Omitting 12 identical items, use -vv to show
Differing items:
{'last_run': {'title': 'Manual run'}} != {'last_run': {'queue': 'celery', 'title': 'Manual run'}}
Full diff:
{
'active': True,
'created': '2024-09-11T15:16:46.947605+00:00',
'default_args': '{}',
'default_queue': 'low',
'description': None,
'id': '8603bc69-1880-4195-9adb-ac664048b426',
- 'last_run': {'queue': 'celery', 'title': 'Manual run'},
? -------------------
+ 'last_run': {'title': 'Manual run'},
'last_runs': {'cancelled': {},
'cancelling': {},
'failed': {},
'queued': {},
'running': {},
'success': {},
'warning': {}},
'links': {'runs': 'https://127.0.0.1:5000/api/jobs/8603bc69-1880-4195-9adb-ac664048b426/runs',
'self': 'https://127.0.0.1:5000/api/jobs/8603bc69-1880-4195-9adb-ac664048b426',
'self_admin_html': 'https://127.0.0.1:5000/administration/jobs/8603bc69-1880-4195-9adb-ac664048b426'},
'schedule': {'hours': 4, 'type': 'interval'},
'task': 'update_expired_embargos',
'title': 'Test interval job',
'updated': '2024-09-11T15:16:46.947612+00:00',
}
|
Run tests:
invenio_jobs/services/schema.py#L1
isort-check
from invenio_i18n import lazy_gettext as _
from invenio_users_resources.services import schemas as user_schemas
-from marshmallow import (
- EXCLUDE,
- Schema,
- fields,
- post_load,
- pre_dump,
- pre_load,
- validate,
-)
+from marshmallow import EXCLUDE, Schema, fields, post_load, pre_dump, pre_load, validate
from marshmallow_oneofschema import OneOfSchema
from marshmallow_utils.fields import SanitizedUnicode, TZDateTime
from marshmallow_utils.permissions import FieldPermissionsMixin
|
Run tests
Process completed with exit code 1.
|
Loading