services: added record extension registry #5652
Annotations
3 errors
Run tests:
invenio_rdm_records/services/config.py#L1
isort-check
from invenio_requests.services.requests.config import RequestSearchOptions
from requests import Request
from werkzeug.local import LocalProxy
+from werkzeug.utils import cached_property
from invenio_rdm_records.records.processors.tiles import TilesProcessor
StatusParam,
)
from .sort import VerifiedRecordsSortParam
-from werkzeug.utils import cached_property
def is_draft_and_has_review(record, ctx):
|
Run tests:
invenio_rdm_records/services/config.py#L1
Black format check
--- /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/services/config.py 2024-11-13 16:20:04.953677+00:00
+++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/invenio_rdm_records/services/config.py 2024-11-13 16:46:25.174477+00:00
@@ -405,11 +405,13 @@
self._app.extensions["invenio-rdm-records"], "record_service_registry", {}
)
new_cls = cfg_cls
for name, _ext in exts.items():
tmp = _ext(self._app, new_cls)
- assert type(tmp) == type(cfg_cls), f"Invalid record type. Expected: {type(cfg_cls)}, got: {type(tmp)}"
+ assert type(tmp) == type(
+ cfg_cls
+ ), f"Invalid record type. Expected: {type(cfg_cls)}, got: {type(tmp)}"
new_cls = tmp
return new_cls
draft_cls = FromConfig("RDM_DRAFT_CLS", default=RDMDraft)
|
Run tests
Process completed with exit code 1.
|
Loading