Skip to content

Commit

Permalink
Fix tests: Field._deserialize must accept **kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrech committed Jun 5, 2019
1 parent c5a5c05 commit 41dc19f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_error_raised_if_missing_is_set_on_required_field(self):

def test_custom_field_receives_attr_and_obj(self):
class MyField(fields.Field):
def _deserialize(self, val, attr, data):
def _deserialize(self, val, attr, data, **kwargs):
assert attr == 'name'
assert data['foo'] == 42
return val
Expand All @@ -61,7 +61,7 @@ class MySchema(Schema):

def test_custom_field_receives_data_key_if_set(self):
class MyField(fields.Field):
def _deserialize(self, val, attr, data):
def _deserialize(self, val, attr, data, **kwargs):
assert attr == 'name'
assert data['foo'] == 42
return val
Expand Down

0 comments on commit 41dc19f

Please sign in to comment.