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

Method test_b

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

Source from the content-addressed store, hash-verified

261 assert mod.__name__ == "otherdir.a"
262
263 def test_b(self, path1: Path, ns_param: bool) -> None:
264 otherdir = path1 / "otherdir"
265 mod = import_path(
266 otherdir / "b.py", root=path1, consider_namespace_packages=ns_param
267 )
268 assert mod.stuff == "got it"
269 assert mod.__name__ == "otherdir.b"
270
271 def test_c(self, path1: Path, ns_param: bool) -> None:
272 otherdir = path1 / "otherdir"

Callers

nothing calls this directly

Calls 1

import_pathFunction · 0.90

Tested by

no test coverage detected