MCPcopy Create free account
hub / github.com/ipython/traitlets / TestInstanceFullyValidatedDict

Class TestInstanceFullyValidatedDict

tests/test_traitlets.py:1937–1942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1935
1936
1937class TestInstanceFullyValidatedDict(TraitTestBase):
1938 obj = FullyValidatedDictTrait()
1939
1940 _default_value = {"foo": 1}
1941 _good_values = [{"foo": 0, "bar": "1"}, {"foo": 1, "bar": "2"}]
1942 _bad_values = [{"foo": 0, "bar": 1}, {"foo": "0", "bar": "1"}, {"foo": 0, 0: "1"}]
1943
1944
1945def test_dict_default_value():

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…