MCPcopy
hub / github.com/marshmallow-code/marshmallow / test_make_error

Method test_make_error

tests/test_fields.py:273–277  ·  view source on GitHub ↗
(self, key, message)

Source from the content-addressed store, hash-verified

271
272 @pytest.mark.parametrize(("key", "message"), error_messages)
273 def test_make_error(self, key, message):
274 field = self.MyField()
275
276 error = field.make_error(key)
277 assert error.args[0] == message
278
279 def test_make_error_key_doesnt_exist(self):
280 with pytest.raises(AssertionError) as excinfo:

Callers

nothing calls this directly

Calls 1

make_errorMethod · 0.80

Tested by

no test coverage detected