component_templates: allow the usage of component_templates instead of mappings for the definition of the records. #338
Annotations
4 errors and 10 warnings
Run tests:
tests/test_verbs.py#L277
test_getrecord
NameError: name 'index' is not defined
|
Run tests:
tests/test_verbs.py#L619
test_listrecords
NameError: name 'index' is not defined
|
Run tests:
invenio_oaiserver/utils.py#L1
Black format check
--- /home/runner/work/invenio-oaiserver/invenio-oaiserver/invenio_oaiserver/utils.py 2025-02-05 16:47:39.796235+00:00
+++ /home/runner/work/invenio-oaiserver/invenio-oaiserver/invenio_oaiserver/utils.py 2025-02-05 16:49:55.541482+00:00
@@ -175,11 +175,11 @@
"""Removes characters incompatible with XML1.0.
Following W3C recommandation : https://www.w3.org/TR/REC-xml/#charsets
Based on https://lsimons.wordpress.com/2011/03/17/stripping-illegal-characters-out-of-xml-in-python/ # noqa
"""
- return re.sub("[\x00-\x08\x0B\x0C\x0E-\x1F\uD800-\uDFFF\uFFFE\uFFFF]", "", value)
+ return re.sub("[\x00-\x08\x0b\x0c\x0e-\x1f\ud800-\udfff\ufffe\uffff]", "", value)
def record_sets_fetcher(record):
"""Fetch a record's sets."""
return record.get("_oai", {}).get("sets", [])
|
Run tests
Process completed with exit code 1.
|
Run tests:
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/passlib/utils/__init__.py#L854
'crypt' is deprecated and slated for removal in Python 3.13
|
Run tests:
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Run tests:
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/jsonresolver/contrib/jsonschema.py#L31
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Run tests:
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
|
Run tests:
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Run tests:
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable.
|
Run tests:
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/invenio_records/resolver.py#L14
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
|
Run tests:
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/webargs/compat.py#L8
The '__version__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'importlib.metadata.version("marshmallow")' instead.
|
Run tests:
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/webargs/compat.py#L8
distutils Version classes are deprecated. Use packaging.version instead.
|
Run tests:
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/webargs/__init__.py#L13
distutils Version classes are deprecated. Use packaging.version instead.
|
Loading