Skip to content

Commit

Permalink
Merge pull request #22 from oarepo/fixes
Browse files Browse the repository at this point in the history
ma_fields fix; tests restored
  • Loading branch information
SilvyPuzzlewell authored Mar 14, 2024
2 parents c6adc6d + c2ee483 commit c56b637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ModelSchema(ma.Schema):

def process_mb_invenio_drafts_parent_marshmallow(self, datatype, section, **kwargs):
obj = section.config.setdefault("additional-fields", {})
obj |= {"owners": "ma_fields.List(ma_fields.Dict(), load_only=True)"}
obj |= {"owners": "ma.fields.List(ma.fields.Dict(), load_only=True)"}

def before_model_prepare(self, datatype, *, context, **kwargs):
marshmallow = set_default(datatype, "parent-record-marshmallow", {})
Expand Down
2 changes: 1 addition & 1 deletion run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ pip install -U setuptools pip wheel
pip install "oarepo[tests]==${OAREPO_VERSION}.*"

pip install "./build-tests/${MODEL}[tests]"
# pytest build-tests/$MODEL/tests
pytest build-tests/$MODEL/tests

0 comments on commit c56b637

Please sign in to comment.