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

Function test_handle_docstring

tests/test_traitlets_docstring.py:12–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11
12def test_handle_docstring():
13 class SampleConfigurable(Configurable):
14 pass
15
16 class TraitTypesSampleConfigurable(Configurable):
17 """TraitTypesSampleConfigurable docstring"""
18
19 trait_integer = Integer(
20 help="""trait_integer help text""",
21 config=True,
22 )
23 trait_integer_nohelp = Integer(
24 config=True,
25 )
26 trait_integer_noconfig = Integer(
27 help="""trait_integer_noconfig help text""",
28 )
29
30 trait_unicode = Unicode(
31 help="""trait_unicode help text""",
32 config=True,
33 )
34 trait_unicode_nohelp = Unicode(
35 config=True,
36 )
37 trait_unicode_noconfig = Unicode(
38 help="""trait_unicode_noconfig help text""",
39 )
40
41 trait_dict = Dict(
42 help="""trait_dict help text""",
43 config=True,
44 )
45 trait_dict_nohelp = Dict(
46 config=True,
47 )
48 trait_dict_noconfig = Dict(
49 help="""trait_dict_noconfig help text""",
50 )
51
52 trait_instance = Instance(
53 klass=SampleConfigurable,
54 help="""trait_instance help text""",
55 config=True,
56 )
57 trait_instance_nohelp = Instance(
58 klass=SampleConfigurable,
59 config=True,
60 )
61 trait_instance_noconfig = Instance(
62 klass=SampleConfigurable,
63 help="""trait_instance_noconfig help text""",
64 )
65
66 trait_union = Union(
67 [Integer(), Unicode()],
68 help="""trait_union help text""",
69 config=True,

Callers

nothing calls this directly

Calls 3

SampleConfigurableClass · 0.85
trait_namesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…