Skip to content

"media_files": {"enabled": False} doesn't serialize out #319

@fenekku

Description

@fenekku

Placing "media_files": {"enabled": False} in the conftest.py:input_data makes tests/services/test_record_service.py:test_create_draft and test_publish_draft fail because "media_files": {"enabled": False} is not serialized out, only ``"media_files": {}` is.

"media_files": {"enabled": False} is expected to be serialized out like "files": {"enabled": False} is.

This may be a problem to fix in invenio-records-resources actually, but it was experienced here and didn't have time to dig into it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions