Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/test_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ def test_unsupported_value_format(self):


class FormatedStringFieldTest(StringTestMixin, BaseFieldTestMixin, FieldTestCase):
field_class = partial(fields.FormattedString, "Hello {name}")
field_class = staticmethod(partial(fields.FormattedString, "Hello {name}"))

def test_defaults(self):
field = fields.FormattedString("Hello {name}")
Expand Down Expand Up @@ -731,7 +731,7 @@ def test_tuple(self):


class UrlFieldTest(StringTestMixin, BaseFieldTestMixin, FieldTestCase):
field_class = partial(fields.Url, "endpoint")
field_class = staticmethod(partial(fields.Url, "endpoint"))

def test_defaults(self):
field = fields.Url("endpoint")
Expand Down Expand Up @@ -931,7 +931,7 @@ def test_as_list_is_reusable(self, api):


class ListFieldTest(BaseFieldTestMixin, FieldTestCase):
field_class = partial(fields.List, fields.String)
field_class = staticmethod(partial(fields.List, fields.String))

def test_defaults(self):
field = fields.List(fields.String)
Expand Down Expand Up @@ -1025,7 +1025,7 @@ def test_list_of_raw(self):


class WildcardFieldTest(BaseFieldTestMixin, FieldTestCase):
field_class = partial(fields.Wildcard, fields.String)
field_class = staticmethod(partial(fields.Wildcard, fields.String))

def test_types(self):
with pytest.raises(fields.MarshallingError):
Expand Down