fix(deposit): page render and save a empty record #869
tests.yml
on: pull_request
tests
/
create-strategy
2s
Matrix: tests / tests
Annotations
3 errors
tests / Test (Python 3.12):
invenio_records_marc21/resources/deserializers/schema.py#L1
Black format check
--- /home/runner/work/invenio-records-marc21/invenio-records-marc21/invenio_records_marc21/resources/deserializers/schema.py 2024-10-31 09:49:37.938481+00:00
+++ /home/runner/work/invenio-records-marc21/invenio-records-marc21/invenio_records_marc21/resources/deserializers/schema.py 2024-10-31 09:54:09.306337+00:00
@@ -32,11 +32,11 @@
"""Load metadata."""
fields = {}
metadata = {
"leader": value["leader"],
}
-
+
if "fields" not in value:
return metadata
for field in value["fields"]:
if int(field["id"]) < 10:
|
tests / Test (Python 3.12):
invenio_records_marc21/resources/serializers/deposit/schema.py#L1
Black format check
--- /home/runner/work/invenio-records-marc21/invenio-records-marc21/invenio_records_marc21/resources/serializers/deposit/schema.py 2024-10-31 09:49:37.938481+00:00
+++ /home/runner/work/invenio-records-marc21/invenio-records-marc21/invenio_records_marc21/resources/serializers/deposit/schema.py 2024-10-31 09:54:13.592531+00:00
@@ -52,10 +52,11 @@
fields_ui.append(obj)
record["fields"] = fields_ui
return record
+
class Marc21DepositSchema(Marc21Schema):
"""Marc21 deposit schema."""
class Meta:
"""Meta class to accept unknwon fields."""
|
tests / Test (Python 3.12)
Process completed with exit code 1.
|