MCPcopy
hub / github.com/pydantic/pydantic / test_config_wrapper_get_item

Function test_config_wrapper_get_item

tests/test_config.py:665–670  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

663
664
665def test_config_wrapper_get_item():
666 config_wrapper = ConfigWrapper(config=ConfigDict(title='test'))
667
668 assert config_wrapper.title == 'test'
669 with pytest.raises(AttributeError, match="Config has no attribute 'test'"):
670 config_wrapper.test
671
672
673def test_config_inheritance_with_annotations():

Callers

nothing calls this directly

Calls 2

ConfigWrapperClass · 0.90
ConfigDictClass · 0.90

Tested by

no test coverage detected