Skip to content

Add book section serialization to bibtex #5897

Add book section serialization to bibtex

Add book section serialization to bibtex #5897

Triggered via pull request January 27, 2025 19:56
Status Failure
Total duration 28m 26s
Artifacts

tests.yml

on: pull_request
Matrix: JS / Tests
Matrix: Python / Tests
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 22 warnings
Python / Tests (3.9, postgresql14, opensearch2): tests/resources/serializers/test_bibtex_serializer.py#L1
Black format check --- /home/runner/work/invenio-rdm-records/invenio-rdm-records/tests/resources/serializers/test_bibtex_serializer.py 2025-01-27 19:56:27.675885+00:00 +++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/tests/resources/serializers/test_bibtex_serializer.py 2025-01-27 20:07:50.085410+00:00 @@ -124,11 +124,11 @@ def test_misc_types(running_app, updated_minimal_record, resource_type): """Test bibtex misc formatter for each resource type.""" updated_minimal_record["metadata"]["resource_type"]["id"] = resource_type serializer = BibtexSerializer() serialized_record = serializer.serialize_object(updated_minimal_record) - + expected_data = "\n".join( [ "@misc{brown_2023_abcde-fghij,", " author = {Name and", " Troy Inc.},",
Python / Tests (3.9, postgresql14, opensearch2): tests/resources/serializers/test_bibtex_serializer.py#L301
test_serialize_publication_booksection AssertionError: assert '@misc{brown_...Acme Inc},\n}' == '@misc{brown_... = mar,\n}' Skipping 114 identical leading characters in diff, use -v to show story}, + month = mar, year = 2023, publisher = {Acme Inc}, - month = mar, }
Python / Tests (3.9, postgresql14, opensearch2)
Process completed with exit code 1.
Python / Tests (3.12, postgresql14, opensearch2): tests/resources/serializers/test_bibtex_serializer.py#L1
Black format check --- /home/runner/work/invenio-rdm-records/invenio-rdm-records/tests/resources/serializers/test_bibtex_serializer.py 2025-01-27 19:56:29.404297+00:00 +++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/tests/resources/serializers/test_bibtex_serializer.py 2025-01-27 20:09:44.949850+00:00 @@ -124,11 +124,11 @@ def test_misc_types(running_app, updated_minimal_record, resource_type): """Test bibtex misc formatter for each resource type.""" updated_minimal_record["metadata"]["resource_type"]["id"] = resource_type serializer = BibtexSerializer() serialized_record = serializer.serialize_object(updated_minimal_record) - + expected_data = "\n".join( [ "@misc{brown_2023_abcde-fghij,", " author = {Name and", " Troy Inc.},",
Python / Tests (3.12, postgresql14, opensearch2): tests/resources/serializers/test_bibtex_serializer.py#L301
test_serialize_publication_booksection AssertionError: assert '@misc{brown_...Acme Inc},\n}' == '@misc{brown_... = mar,\n}' Skipping 114 identical leading characters in diff, use -v to show story}, + month = mar, year = 2023, publisher = {Acme Inc}, - month = mar, }
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/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#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#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