(self)
| 1615 | assert p.subpackages == [] |
| 1616 | |
| 1617 | def test_python_package(self) -> None: |
| 1618 | with ModuleInspect() as m: |
| 1619 | p = m.get_package_properties("unittest") |
| 1620 | assert p is not None |
| 1621 | assert p.name == "unittest" |
| 1622 | assert p.file |
| 1623 | assert p.path |
| 1624 | assert p.is_c_module is False |
| 1625 | assert p.subpackages |
| 1626 | assert all(sub.startswith("unittest.") for sub in p.subpackages) |
| 1627 | |
| 1628 | def test_c_module(self) -> None: |
| 1629 | with ModuleInspect() as m: |
nothing calls this directly
no test coverage detected