MCPcopy Index your code
hub / github.com/encode/django-rest-framework / test_valid_inputs

Method test_valid_inputs

tests/test_fields.py:656–662  ·  view source on GitHub ↗

Ensure that valid values return the expected validated data.

(self, *args)

Source from the content-addressed store, hash-verified

654 Base class for testing valid and invalid input values.
655 """
656 def test_valid_inputs(self, *args):
657 """
658 Ensure that valid values return the expected validated data.
659 """
660 for input_value, expected_output in get_items(self.valid_inputs):
661 assert self.field.run_validation(input_value) == expected_output, \
662 f'input value: {repr(input_value)}'
663
664 def test_invalid_inputs(self, *args):
665 """

Callers

nothing calls this directly

Calls 2

get_itemsFunction · 0.85
run_validationMethod · 0.45

Tested by

no test coverage detected