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

Method test_a

testing/test_pathlib.py:255–261  ·  testing/test_pathlib.py::TestImportPath.test_a
(self, path1: Path, ns_param: bool)

Source from the content-addressed store, hash-verified

253 assert m.__name__ == class="st">"hello_123"
254
255 def test_a(self, path1: Path, ns_param: bool) -> None:
256 otherdir = path1 / class="st">"otherdir"
257 mod = import_path(
258 otherdir / class="st">"a.py", root=path1, consider_namespace_packages=ns_param
259 )
260 assert mod.result == class="st">"got it"
261 assert mod.__name__ == class="st">"otherdir.a"
262
263 def test_b(self, path1: Path, ns_param: bool) -> None:
264 otherdir = path1 / class="st">"otherdir"

Callers

nothing calls this directly

Calls 1

import_pathFunction · 0.90

Tested by

no test coverage detected