MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_d

Method test_d

testing/test_pathlib.py:200–203  ·  view source on GitHub ↗
(self, path1: Path)

Source from the content-addressed store, hash-verified

198 assert mod.value == "got it" # type: ignore[attr-defined]
199
200 def test_d(self, path1: Path) -> None:
201 otherdir = path1 / "otherdir"
202 mod = import_path(otherdir / "d.py", root=path1)
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()

Callers

nothing calls this directly

Calls 1

import_pathFunction · 0.90

Tested by

no test coverage detected