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

Method test_d

testing/test_pathlib.py:278–283  ·  view source on GitHub ↗
(self, path1: Path, ns_param: bool)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

import_pathFunction · 0.90

Tested by

no test coverage detected