MCPcopy
hub / github.com/pytest-dev/pytest / test_import_path_missing_file

Method test_import_path_missing_file

testing/test_pathlib.py:200–204  ·  testing/test_pathlib.py::TestImportPath.test_import_path_missing_file
(self, path1: Path, ns_param: bool)

Source from the content-addressed store, hash-verified

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):
202 import_path(
203 path1 / class="st">"sampledir", root=path1, consider_namespace_packages=ns_param
204 )
205
206 def test_renamed_dir_creates_mismatch(
207 self, tmp_path: Path, monkeypatch: MonkeyPatch, ns_param: bool

Callers

nothing calls this directly

Calls 1

import_pathFunction · 0.90

Tested by

no test coverage detected