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

Method test_b

testing/test_pathlib.py:263–269  ·  testing/test_pathlib.py::TestImportPath.test_b
(self, path1: Path, ns_param: bool)

Source from the content-addressed store, hash-verified

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"
265 mod = import_path(
266 otherdir / class="st">"b.py", root=path1, consider_namespace_packages=ns_param
267 )
268 assert mod.stuff == class="st">"got it"
269 assert mod.__name__ == class="st">"otherdir.b"
270
271 def test_c(self, path1: Path, ns_param: bool) -> None:
272 otherdir = path1 / class="st">"otherdir"

Callers

nothing calls this directly

Calls 1

import_pathFunction · 0.90

Tested by

no test coverage detected