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

Method test_a

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

Source from the content-addressed store, hash-verified

181 assert m.__name__ == "hello_123"
182
183 def test_a(self, path1: Path) -> None:
184 otherdir = path1 / "otherdir"
185 mod = import_path(otherdir / "a.py", root=path1)
186 assert mod.result == "got it" # type: ignore[attr-defined]
187 assert mod.__name__ == "otherdir.a"
188
189 def test_b(self, path1: Path) -> None:
190 otherdir = path1 / "otherdir"

Callers

nothing calls this directly

Calls 1

import_pathFunction · 0.90

Tested by

no test coverage detected