(self, tmp_path: Path)
| 203 | assert mod.value2 == "got it" # type: ignore[attr-defined] |
| 204 | |
| 205 | def test_import_after(self, tmp_path: Path) -> None: |
| 206 | tmp_path.joinpath("xxxpackage").mkdir() |
| 207 | tmp_path.joinpath("xxxpackage", "__init__.py").touch() |
| 208 | mod1path = tmp_path.joinpath("xxxpackage", "module1.py") |
| 209 | mod1path.touch() |
| 210 | mod1 = import_path(mod1path, root=tmp_path) |
| 211 | assert mod1.__name__ == "xxxpackage.module1" |
| 212 | from xxxpackage import module1 |
| 213 | |
| 214 | assert module1 is mod1 |
| 215 | |
| 216 | def test_check_filepath_consistency( |
| 217 | self, monkeypatch: MonkeyPatch, tmp_path: Path |
nothing calls this directly
no test coverage detected