MCPcopy Create free account
hub / github.com/ipython/ipython / test_config_available_configs

Function test_config_available_configs

IPython/core/tests/test_magic.py:115–123  ·  view source on GitHub ↗

test that config magic prints available configs in unique and sorted order.

()

Source from the content-addressed store, hash-verified

113 _ip.magic('config')
114
115def test_config_available_configs():
116 """ test that config magic prints available configs in unique and
117 sorted order. """
118 with capture_output() as captured:
119 _ip.magic('config')
120
121 stdout = captured.stdout
122 config_classes = stdout.strip().split('\n')[1:]
123 nt.assert_list_equal(config_classes, sorted(set(config_classes)))
124
125def test_config_print_class():
126 """ test that config with a classname prints the class's options. """

Callers

nothing calls this directly

Calls 2

capture_outputClass · 0.85
magicMethod · 0.45

Tested by

no test coverage detected