MCPcopy
hub / github.com/pydantic/pydantic / py_and_json

Function py_and_json

pydantic-core/tests/conftest.py:106–110  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

104
105@pytest.fixture(params=['python', 'json'])
106def py_and_json(request) -> PyAndJson:
107 class ChosenPyAndJsonValidator(PyAndJsonValidator):
108 __init__ = functools.partialmethod(PyAndJsonValidator.__init__, validator_type=request.param)
109
110 return ChosenPyAndJsonValidator
111
112
113class StrictModeType:

Callers 15

test_int_strict_argumentFunction · 0.85
test_omitFunction · 0.85
test_afterFunction · 0.85
test_mutable_contextFunction · 0.85
test_typed_dictFunction · 0.85
test_wrapFunction · 0.85
test_isinstanceFunction · 0.85
test_list_omit_exceptionFunction · 0.85
test_list_jsonFunction · 0.85
test_dict_valuesFunction · 0.85
test_tuple_variableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected