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

Function test_valid_exported_submodules

tests/test_completerlib.py:188–196  ·  view source on GitHub ↗

Test checking exported (__all__) objects are submodules

()

Source from the content-addressed store, hash-verified

186
187
188def test_valid_exported_submodules():
189 """
190 Test checking exported (__all__) objects are submodules
191 """
192 results = module_completion("import os.pa")
193 # ensure we get a valid submodule:
194 assert "os.path" in results
195 # ensure we don't get objects that aren't submodules:
196 assert "os.pathconf" not in results

Callers

nothing calls this directly

Calls 1

module_completionFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…