MCPcopy
hub / github.com/pydantic/pydantic / TestCls

Class TestCls

tests/test_deprecated.py:221–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219@pytest.mark.parametrize('extra', ['ignore', 'forbid', 'allow'])
220def test_extra_allow_from_orm(extra: Literal['ignore', 'forbid', 'allow']):
221 class TestCls:
222 x = 1
223 y = 2
224
225 class Model(BaseModel):
226 model_config = ConfigDict(from_attributes=True, extra=extra)

Callers 2

test_root_validatorFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_root_validatorFunction · 0.68