MCPcopy Index your code
hub / github.com/python/mypy / test_python_module

Method test_python_module

mypy/test/teststubgen.py:1607–1615  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1605
1606class ModuleInspectSuite(unittest.TestCase):
1607 def test_python_module(self) -> None:
1608 with ModuleInspect() as m:
1609 p = m.get_package_properties("inspect")
1610 assert p is not None
1611 assert p.name == "inspect"
1612 assert p.file
1613 assert p.path is None
1614 assert p.is_c_module is False
1615 assert p.subpackages == []
1616
1617 def test_python_package(self) -> None:
1618 with ModuleInspect() as m:

Callers

nothing calls this directly

Calls 2

ModuleInspectClass · 0.90

Tested by

no test coverage detected