Skip to content

Commit

Permalink
Reformat files with latest black
Browse files Browse the repository at this point in the history
  • Loading branch information
sponsfreixes committed Mar 14, 2023
1 parent b050b09 commit 7d369a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ class Meta:
{"generic": {"id": str(sub_doc_b.id), "_cls": sub_doc_b._class_name}}
)
assert load_data["generic"] == sub_doc_b

# Teste choices param
class DocOnlyA(me.Document):
id = me.StringField(primary_key=True, default="main")
Expand Down Expand Up @@ -406,6 +407,7 @@ class Meta:
doc.reload()
dump_data = DocSchema().dump(doc)
assert dump_data == {"ref": 42, "id": "main"}

# Try the same with reference document type passed as string
class DocSchemaRefAsString(Schema):
id = fields.String()
Expand Down
1 change: 1 addition & 0 deletions tests/test_marshmallow_mongoengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ def test_model_schema_custom_skip_values(self, models, schemas):
date_created=datetime(2016, 2, 14),
courses=None,
).save()

# If specified, we don't load the id from the data
class CustomSkipValuesStudentSchema(schemas.StudentSchema):
class Meta:
Expand Down

0 comments on commit 7d369a8

Please sign in to comment.