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

Function test_pypkgdir_unimportable

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

Source from the content-addressed store, hash-verified

1160
1161
1162def test_pypkgdir_unimportable(tmpdir):
1163 pkg = tmpdir.ensure("pkg1-1", dir=1) # unimportable
1164 pkg.ensure("__init__.py")
1165 subdir = pkg.ensure("subdir/__init__.py").dirpath()
1166 assert subdir.pypkgpath() == subdir
1167 assert subdir.ensure("xyz.py").pypkgpath() == subdir
1168 assert not pkg.pypkgpath()
1169
1170
1171def test_isimportable():

Callers

nothing calls this directly

Calls 3

ensureMethod · 0.80
dirpathMethod · 0.80
pypkgpathMethod · 0.80

Tested by

no test coverage detected