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

Function test_pypkgdir

testing/_py/test_local.py:1154–1159  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

1152
1153
1154def test_pypkgdir(tmpdir):
1155 pkg = tmpdir.ensure("pkg1", dir=1)
1156 pkg.ensure("__init__.py")
1157 pkg.ensure("subdir/__init__.py")
1158 assert pkg.pypkgpath() == pkg
1159 assert pkg.join("subdir", "__init__.py").pypkgpath() == pkg
1160
1161
1162def test_pypkgdir_unimportable(tmpdir):

Callers

nothing calls this directly

Calls 3

ensureMethod · 0.80
pypkgpathMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected