Skip to content

Add book section serialization to bibtex #5851

Add book section serialization to bibtex

Add book section serialization to bibtex #5851

Triggered via pull request January 9, 2025 00:37
Status Failure
Total duration 27m 7s
Artifacts

tests.yml

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

Annotations

4 errors and 2 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-09 00:37:21.376023+00:00 +++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/tests/resources/serializers/test_bibtex_serializer.py 2025-01-09 00:49:58.966126+00:00 @@ -208,22 +208,22 @@ "id" ] = "publication-conferenceproceeding" serializer = BibtexSerializer() serialized_record = serializer.serialize_object(updated_minimal_record) - + expected_data = "\n".join( [ "@proceedings{brown_2023_abcde-fghij,", " title = {A Romans story},", " year = 2023,", " publisher = {Acme Inc},", " month = mar,", "}", ] ) - + assert serialized_record == expected_data def test_serialize_publication_booksection(running_app, updated_minimal_record): """Test bibtex formatter for a section of a book.
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-09 00:37:20.164955+00:00 +++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/tests/resources/serializers/test_bibtex_serializer.py 2025-01-09 00:49:45.937080+00:00 @@ -208,22 +208,22 @@ "id" ] = "publication-conferenceproceeding" serializer = BibtexSerializer() serialized_record = serializer.serialize_object(updated_minimal_record) - + expected_data = "\n".join( [ "@proceedings{brown_2023_abcde-fghij,", " title = {A Romans story},", " year = 2023,", " publisher = {Acme Inc},", " month = mar,", "}", ] ) - + assert serialized_record == expected_data def test_serialize_publication_booksection(running_app, updated_minimal_record): """Test bibtex formatter for a section of a book.
Python / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.