Resource type eguide #376
Merged
Resource type eguide #376
Annotations
3 errors and 10 warnings
|
Run tests
Process completed with exit code 1.
|
|
Run tests:
tests/cds-rdm/test_thesis_migration.py#L0
Black format check
--- /home/runner/work/cds-migrator-kit/cds-migrator-kit/tests/cds-rdm/test_thesis_migration.py 2025-12-11 10:41:13.652271+00:00
+++ /home/runner/work/cds-migrator-kit/cds-migrator-kit/tests/cds-rdm/test_thesis_migration.py 2025-12-11 10:45:24.277567+00:00
@@ -94,11 +94,14 @@
assert new_record["metadata"]["related_identifiers"] == [
{
"identifier": "978-3-030-90375-6",
"scheme": "isbn",
- "relation_type": {"id": "isvariantformof", "title": {"en": "Is variant form of"}},
+ "relation_type": {
+ "id": "isvariantformof",
+ "title": {"en": "Is variant form of"},
+ },
"resource_type": {
"id": "publication-book",
"title": {
"de": "Buch",
"en": "Book",
@@ -106,11 +109,14 @@
},
},
{
"identifier": "978-3-030-90376-3",
"scheme": "isbn",
- "relation_type": {"id": "isvariantformof", "title": {"en": "Is variant form of"}},
+ "relation_type": {
+ "id": "isvariantformof",
+ "title": {"en": "Is variant form of"},
+ },
"resource_type": {
"id": "publication-book",
"title": {
"de": "Buch",
"en": "Book",
@@ -119,11 +125,14 @@
},
## secondary DOI is a version of the publication in springer
{
"identifier": "10.1007/978-3-030-90376-3",
"scheme": "doi",
- "relation_type": {"id": "isvariantformof", "title": {"en": "Is variant form of"}},
+ "relation_type": {
+ "id": "isvariantformof",
+ "title": {"en": "Is variant form of"},
+ },
"resource_type": {
"id": "publication",
"title": {"en": "Publication", "de": "Publikation"},
},
},
|
|
Run tests:
tests/cds-rdm/test_hr_migration.py#L218
test_resource_type_mapping
KeyError: 'resource_type'
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/pkg_resources/__init__.py#L2559
Deprecated call to `pkg_resources.declare_namespace('fs')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/fs/opener/__init__.py#L6
Deprecated call to `pkg_resources.declare_namespace('fs.opener')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/fs/__init__.py#L4
Deprecated call to `pkg_resources.declare_namespace('fs')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/x64/lib/python3.9/site-packages/fs/__init__.py#L4
pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/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.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/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.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/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.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/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.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/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.
|
|
Run tests:
/opt/hostedtoolcache/Python/3.9.25/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.
|
Loading