services: proper escape the fiels key in links generation #5901
Annotations
10 errors and 22 warnings
Python / Tests (3.9, postgresql14, opensearch2):
tests/resources/test_iiif_image_api.py#L102
test_iiif_base
AssertionError: assert 'https://127....png/info.json' == 'https://127....png/info.json'
Skipping 45 identical leading characters in diff, use -v to show
- 1bv60:test/image.png/info.json
? ^
+ 1bv60:test%2Fimage.png/info.json
? ^^^
|
Python / Tests (3.9, postgresql14, opensearch2):
tests/resources/test_iiif_image_api.py#L137
test_iiif_info
AssertionError: assert {'@context': ...2.json'], ...} == {'@context': ...2.json'], ...}
Omitting 6 identical items, use -vv to show
Differing items:
{'@id': 'https://127.0.0.1:5000/api/iiif/record:mmmat-01r51:test%2Fimage.png'} != {'@id': 'https://127.0.0.1:5000/api/iiif/record:mmmat-01r51:test/image.png'}
Full diff:
{
'@context': 'http://iiif.io/api/image/2/context.json',
- '@id': 'https://127.0.0.1:5000/api/iiif/record:mmmat-01r51:test/image.png',
? ^
+ '@id': 'https://127.0.0.1:5000/api/iiif/record:mmmat-01r51:test%2Fimage.png',
? ^^^
'height': 1024,
'profile': ['http://iiif.io/api/image/2/level2.json'],
'protocol': 'http://iiif.io/api/image',
'tiles': [{'scaleFactors': [1, 2, 4, 8, 16, 32, 64], 'width': 256}],
'width': 1280,
}
|
Python / Tests (3.9, postgresql14, opensearch2):
tests/services/schemas/test_version.py#L1
Black format check
--- /home/runner/work/invenio-rdm-records/invenio-rdm-records/tests/services/schemas/test_version.py 2025-01-30 08:09:16.709599+00:00
+++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/tests/services/schemas/test_version.py 2025-01-30 08:29:57.292178+00:00
@@ -11,11 +11,11 @@
from marshmallow import ValidationError
from invenio_rdm_records.services.schemas.metadata import MetadataSchema
[email protected]("version", [("v1.0.0")])
[email protected]("version", ["v1.0.0"])
def test_valid_version(version, app, minimal_record):
metadata = minimal_record["metadata"]
metadata["version"] = version
data = MetadataSchema().load(metadata)
assert data["version"] == metadata["version"]
|
Python / Tests (3.9, postgresql14, opensearch2):
invenio_rdm_records/services/communities/components.py#L1
isort-check
"""Record communities service components."""
from invenio_communities.communities.records.systemfields.access import VisibilityEnum
-from invenio_communities.communities.services.components import ChildrenComponent
+from invenio_communities.communities.services.components import (
+ ChildrenComponent,
+)
from invenio_communities.communities.services.components import (
CommunityAccessComponent as BaseAccessComponent,
)
|
Python / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
|
Python / Tests (3.12, postgresql14, opensearch2):
tests/resources/test_iiif_image_api.py#L102
test_iiif_base
AssertionError: assert 'https://127....png/info.json' == 'https://127....png/info.json'
Skipping 45 identical leading characters in diff, use -v to show
- g6j28:test/image.png/info.json
? ^
+ g6j28:test%2Fimage.png/info.json
? ^^^
|
Python / Tests (3.12, postgresql14, opensearch2):
tests/resources/test_iiif_image_api.py#L137
test_iiif_info
AssertionError: assert {'@context': ...2.json'], ...} == {'@context': ...2.json'], ...}
Omitting 6 identical items, use -vv to show
Differing items:
{'@id': 'https://127.0.0.1:5000/api/iiif/record:xx4pz-fhc44:test%2Fimage.png'} != {'@id': 'https://127.0.0.1:5000/api/iiif/record:xx4pz-fhc44:test/image.png'}
Full diff:
{
'@context': 'http://iiif.io/api/image/2/context.json',
- '@id': 'https://127.0.0.1:5000/api/iiif/record:xx4pz-fhc44:test/image.png',
? ^
+ '@id': 'https://127.0.0.1:5000/api/iiif/record:xx4pz-fhc44:test%2Fimage.png',
? ^^^
'height': 1024,
'profile': ['http://iiif.io/api/image/2/level2.json'],
'protocol': 'http://iiif.io/api/image',
'tiles': [{'scaleFactors': [1, 2, 4, 8, 16, 32, 64], 'width': 256}],
'width': 1280,
}
|
Python / Tests (3.12, postgresql14, opensearch2):
tests/services/schemas/test_version.py#L1
Black format check
--- /home/runner/work/invenio-rdm-records/invenio-rdm-records/tests/services/schemas/test_version.py 2025-01-30 08:09:14.530721+00:00
+++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/tests/services/schemas/test_version.py 2025-01-30 08:32:29.332780+00:00
@@ -11,11 +11,11 @@
from marshmallow import ValidationError
from invenio_rdm_records.services.schemas.metadata import MetadataSchema
[email protected]("version", [("v1.0.0")])
[email protected]("version", ["v1.0.0"])
def test_valid_version(version, app, minimal_record):
metadata = minimal_record["metadata"]
metadata["version"] = version
data = MetadataSchema().load(metadata)
assert data["version"] == metadata["version"]
|
Python / Tests (3.12, postgresql14, opensearch2):
invenio_rdm_records/services/communities/components.py#L1
isort-check
"""Record communities service components."""
from invenio_communities.communities.records.systemfields.access import VisibilityEnum
-from invenio_communities.communities.services.components import ChildrenComponent
+from invenio_communities.communities.services.components import (
+ ChildrenComponent,
+)
from invenio_communities.communities.services.components import (
CommunityAccessComponent as BaseAccessComponent,
)
|
Python / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.
|
|
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/flask_sqlalchemy/__init__.py#L14
'_app_ctx_stack' is deprecated and will be removed in Flask 2.3.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/flask_sqlalchemy/__init__.py#L14
'_app_ctx_stack' is deprecated and will be removed in Flask 2.3.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/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.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/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.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/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.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/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.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/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.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/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.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
|
Python / Tests (3.9, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.9.21/x64/lib/python3.9/site-packages/marshmallow_utils/fields/generated.py#L12
The '__version_info__' attribute is deprecated and will be removed in in a future version. Use feature detection or 'packaging.Version(importlib.metadata.version("marshmallow")).release' instead.
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#L670
ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#L672
Attribute s is deprecated and will be removed in Python 3.14; use value instead
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#L670
ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#L672
Attribute s is deprecated and will be removed in Python 3.14; use value instead
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#L940
ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#L943
ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#L1053
ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#L1055
ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#L804
ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
|
Python / Tests (3.12, postgresql14, opensearch2):
opt/hostedtoolcache/Python/3.12.8/x64/lib/python3.12/site-packages/_pytest/assertion/rewrite.py#L804
ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
|