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

Function test_one_dir

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

Source from the content-addressed store, hash-verified

48
49
50def test_one_dir(pytester: Pytester, file_structure) -> None:
51 pytester.makefile(".ini", pytest="[pytest]\npythonpath=sub\n")
52 result = pytester.runpytest("test_foo.py")
53 assert result.ret == 0
54 result.assert_outcomes(passed=1)
55
56
57def test_two_dirs(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