MCPcopy Index your code
hub / github.com/ipython/ipython / test_config_available_configs

Function test_config_available_configs

tests/test_magic.py:134–142  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

132
133
134def test_config_available_configs():
135 """test that config magic prints available configs in unique and
136 sorted order."""
137 with capture_output() as captured:
138 _ip.run_line_magic("config", "")
139
140 stdout = captured.stdout
141 config_classes = stdout.strip().split("\n")[1:]
142 assert config_classes == sorted(set(config_classes))
143
144
145def test_config_print_class():

Callers

nothing calls this directly

Calls 2

capture_outputClass · 0.85
run_line_magicMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…