MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_does_not_eagerly_collect_packages

Function test_does_not_eagerly_collect_packages

testing/test_collection.py:1350–1355  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1348
1349
1350def test_does_not_eagerly_collect_packages(pytester: Pytester) -> None:
1351 pytester.makepyfile("def test(): pass")
1352 pydir = pytester.mkpydir("foopkg")
1353 pydir.joinpath("__init__.py").write_text("assert False")
1354 result = pytester.runpytest()
1355 assert result.ret == ExitCode.OK
1356
1357
1358def test_does_not_put_src_on_path(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

makepyfileMethod · 0.45
mkpydirMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected