(self, path1: Path, ns_param: bool)
| 191 | ) |
| 192 | |
| 193 | def test_smoke_test(self, path1: Path, ns_param: bool) -> None: |
| 194 | obj = import_path( |
| 195 | path1 / class="st">"execfile.py", root=path1, consider_namespace_packages=ns_param |
| 196 | ) |
| 197 | assert obj.x == 42 |
| 198 | assert obj.__name__ == class="st">"execfile" |
| 199 | |
| 200 | def test_import_path_missing_file(self, path1: Path, ns_param: bool) -> None: |
| 201 | with pytest.raises(ImportPathMismatchError): |
nothing calls this directly
no test coverage detected