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

Function test_default_value

tests/test_traitlets.py:1834–1841  ·  view source on GitHub ↗
(Trait, default_value)

Source from the content-addressed store, hash-verified

1832 ((List, []), (Tuple, ()), (Set, set()), (Dict, {}), (Integer, 0), (Unicode, "")), # noqa: PT007
1833)
1834def test_default_value(Trait, default_value):
1835 class C(HasTraits):
1836 t = Trait()
1837
1838 # test default value
1839 c = C()
1840 assert type(c.t) is type(default_value)
1841 assert c.t == default_value
1842
1843
1844@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

CClass · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…