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

Class C

tests/test_traitlets.py:1818–1819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1816)
1817def test_allow_none_default_value(Trait):
1818 class C(HasTraits):
1819 t = Trait(default_value=None, allow_none=True)
1820
1821 # test default value
1822 c = C()

Callers 14

test_metaclassMethod · 0.70
test_validate_defaultMethod · 0.70
test_args_kwMethod · 0.70
test_default_valueFunction · 0.70
test_enum_no_defaultFunction · 0.70
test_observe_iterablesFunction · 0.70
test_override_defaultFunction · 0.70

Calls 7

EnumClass · 0.90
TypeClass · 0.90
ListClass · 0.90
DictClass · 0.90
UnicodeClass · 0.90
IntClass · 0.90
SubclassTraitClass · 0.85

Tested by 14

test_metaclassMethod · 0.56
test_validate_defaultMethod · 0.56
test_args_kwMethod · 0.56
test_default_valueFunction · 0.56
test_enum_no_defaultFunction · 0.56
test_observe_iterablesFunction · 0.56
test_override_defaultFunction · 0.56