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

Method test_d

testing/test_pathlib.py:278–283  ·  testing/test_pathlib.py::TestImportPath.test_d
(self, path1: Path, ns_param: bool)

Source from the content-addressed store, hash-verified

276 assert mod.value == class="st">"got it"
277
278 def test_d(self, path1: Path, ns_param: bool) -> None:
279 otherdir = path1 / class="st">"otherdir"
280 mod = import_path(
281 otherdir / class="st">"d.py", root=path1, consider_namespace_packages=ns_param
282 )
283 assert mod.value2 == class="st">"got it"
284
285 def test_import_after(self, tmp_path: Path, ns_param: bool) -> None:
286 tmp_path.joinpath(class="st">"xxxpackage").mkdir()

Callers

nothing calls this directly

Calls 1

import_pathFunction · 0.90

Tested by

no test coverage detected