Skip to content

Commit

Permalink
Merge pull request #15 from benlachman/master
Browse files Browse the repository at this point in the history
Fixing unintended LineStringField support regression
  • Loading branch information
sponsfreixes authored Apr 12, 2022
2 parents 490e642 + 72787fd commit a60bf6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions marshmallow_mongoengine/conversion/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ class Builder(MetaFieldBuilder):
register_field(me.fields.ObjectIdField, ma_fields.ObjectId)
register_field(me.fields.UUIDField, ma_fields.UUID)
register_field(me.fields.PointField, ma_fields.Point)
register_field(me.fields.LineStringField, ma_fields.LineString)
register_field(
me.fields.SequenceField, ma_fields.Integer, available_params=(params.SizeParam,)
) # TODO: handle value_decorator
Expand Down
2 changes: 1 addition & 1 deletion tests/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ class Meta:
load_data = DocSchema().load(data)
assert 'point' in excinfo.value.args[0]

@pytest.mark.xfail(reason="TODO: Could not find field of type mongoengine.fields.LineStringField")
@exception_test
def test_LineStringField(self):
class Doc(me.Document):
line = me.LineStringField()
Expand Down

0 comments on commit a60bf6c

Please sign in to comment.