bibtex: add trailing comma in url field #5774
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 2024-12-09 19:21:13.484443+00:00
+++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/tests/resources/serializers/test_bibtex_serializer.py 2024-12-09 19:32:24.768110+00:00
@@ -149,13 +149,13 @@
It serializes into the following formats, depending on the data:
- inproceedings
- proceedings
"""
- updated_minimal_record["metadata"]["resource_type"]["id"] = (
- "publication-conferencepaper"
- )
+ updated_minimal_record["metadata"]["resource_type"][
+ "id"
+ ] = "publication-conferencepaper"
# Force serialization into 'inproceedings'
updated_minimal_record.update(
{"custom_fields": {"imprint:imprint": {"title": "book title"}}}
)
@@ -339,13 +339,13 @@
def test_serialize_publication_technicalnote(running_app, updated_minimal_record):
"""Test bibtex formatter for technical note.
It serializes into 'manual'.
"""
- updated_minimal_record["metadata"]["resource_type"]["id"] = (
- "publication-technicalnote"
- )
+ updated_minimal_record["metadata"]["resource_type"][
+ "id"
+ ] = "publication-technicalnote"
serializer = BibtexSerializer()
serialized_record = serializer.serialize_object(updated_minimal_record)
expected_data = "\n".join(
@@ -366,13 +366,13 @@
def test_serialize_publication_workingpaper(running_app, updated_minimal_record):
"""Test bibtex formatter for working paper.
It serializes into 'unpublished'.
"""
- updated_minimal_record["metadata"]["resource_type"]["id"] = (
- "publication-workingpaper"
- )
+ updated_minimal_record["metadata"]["resource_type"][
+ "id"
+ ] = "publication-workingpaper"
updated_minimal_record.update(
{
"additional_descriptions": [
{"type": {"id": "other"}, "description": "a description"}
|
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 2024-12-09 19:21:11.840068+00:00
+++ /home/runner/work/invenio-rdm-records/invenio-rdm-records/tests/resources/serializers/test_bibtex_serializer.py 2024-12-09 19:33:35.031447+00:00
@@ -149,13 +149,13 @@
It serializes into the following formats, depending on the data:
- inproceedings
- proceedings
"""
- updated_minimal_record["metadata"]["resource_type"]["id"] = (
- "publication-conferencepaper"
- )
+ updated_minimal_record["metadata"]["resource_type"][
+ "id"
+ ] = "publication-conferencepaper"
# Force serialization into 'inproceedings'
updated_minimal_record.update(
{"custom_fields": {"imprint:imprint": {"title": "book title"}}}
)
@@ -339,13 +339,13 @@
def test_serialize_publication_technicalnote(running_app, updated_minimal_record):
"""Test bibtex formatter for technical note.
It serializes into 'manual'.
"""
- updated_minimal_record["metadata"]["resource_type"]["id"] = (
- "publication-technicalnote"
- )
+ updated_minimal_record["metadata"]["resource_type"][
+ "id"
+ ] = "publication-technicalnote"
serializer = BibtexSerializer()
serialized_record = serializer.serialize_object(updated_minimal_record)
expected_data = "\n".join(
@@ -366,13 +366,13 @@
def test_serialize_publication_workingpaper(running_app, updated_minimal_record):
"""Test bibtex formatter for working paper.
It serializes into 'unpublished'.
"""
- updated_minimal_record["metadata"]["resource_type"]["id"] = (
- "publication-workingpaper"
- )
+ updated_minimal_record["metadata"]["resource_type"][
+ "id"
+ ] = "publication-workingpaper"
updated_minimal_record.update(
{
"additional_descriptions": [
{"type": {"id": "other"}, "description": "a description"}
|
Python / Tests (3.12, postgresql14, opensearch2)
Process completed with exit code 1.
|
|
|