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

Function test_two_dirs

testing/test_pythonpath.py:57–61  ·  view source on GitHub ↗
(pytester: Pytester, file_structure)

Source from the content-addressed store, hash-verified

55
56
57def test_two_dirs(pytester: Pytester, file_structure) -> None:
58 pytester.makefile(".ini", pytest="[pytest]\npythonpath=sub sub2\n")
59 result = pytester.runpytest("test_foo.py", "test_bar.py")
60 assert result.ret == 0
61 result.assert_outcomes(passed=2)
62
63
64def test_module_not_found(pytester: Pytester, file_structure) -> None:

Callers

nothing calls this directly

Calls 3

assert_outcomesMethod · 0.80
makefileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected