(self)
| 12 | |
| 13 | class ModuleFinderSuite(Suite): |
| 14 | def setUp(self) -> None: |
| 15 | self.search_paths = SearchPaths( |
| 16 | python_path=(), |
| 17 | mypy_path=( |
| 18 | os.path.join(data_path, "nsx-pkg1"), |
| 19 | os.path.join(data_path, "nsx-pkg2"), |
| 20 | os.path.join(data_path, "nsx-pkg3"), |
| 21 | os.path.join(data_path, "nsy-pkg1"), |
| 22 | os.path.join(data_path, "nsy-pkg2"), |
| 23 | os.path.join(data_path, "pkg1"), |
| 24 | os.path.join(data_path, "pkg2"), |
| 25 | ), |
| 26 | package_path=(), |
| 27 | typeshed_path=(), |
| 28 | ) |
| 29 | options = Options() |
| 30 | options.namespace_packages = True |
| 31 | self.fmc_ns = FindModuleCache(self.search_paths, fscache=None, options=options) |
| 32 | |
| 33 | options = Options() |
| 34 | options.namespace_packages = False |
| 35 | self.fmc_nons = FindModuleCache(self.search_paths, fscache=None, options=options) |
| 36 | |
| 37 | def test__no_namespace_packages__nsx(self) -> None: |
| 38 | """ |
nothing calls this directly
no test coverage detected