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

Method test_c

testing/test_pathlib.py:271–276  ·  testing/test_pathlib.py::TestImportPath.test_c
(self, path1: Path, ns_param: bool)

Source from the content-addressed store, hash-verified

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"
273 mod = import_path(
274 otherdir / class="st">"c.py", root=path1, consider_namespace_packages=ns_param
275 )
276 assert mod.value == class="st">"got it"
277
278 def test_d(self, path1: Path, ns_param: bool) -> None:
279 otherdir = path1 / class="st">"otherdir"

Callers

nothing calls this directly

Calls 1

import_pathFunction · 0.90

Tested by

no test coverage detected