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

Method test_messy_name

testing/test_pathlib.py:238–243  ·  testing/test_pathlib.py::TestImportPath.test_messy_name
(self, tmp_path: Path, ns_param: bool)

Source from the content-addressed store, hash-verified

236 )
237
238 def test_messy_name(self, tmp_path: Path, ns_param: bool) -> None:
239 class="cm"># https://bitbucket.org/hpk42/py-trunk/issue/129
240 path = tmp_path / class="st">"foo__init__.py"
241 path.touch()
242 module = import_path(path, root=tmp_path, consider_namespace_packages=ns_param)
243 assert module.__name__ == class="st">"foo__init__"
244
245 def test_dir(self, tmp_path: Path, ns_param: bool) -> None:
246 p = tmp_path / class="st">"hello_123"

Callers

nothing calls this directly

Calls 1

import_pathFunction · 0.90

Tested by

no test coverage detected