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

Method test_files

testing/test_terminal.py:1881–1892  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

1879
1880 @pytest.fixture
1881 def test_files(self, pytester: Pytester) -> None:
1882 pytester.makepyfile(
1883 **{
1884 "test_one.py": "def test_one(): pass",
1885 "test_two.py": "def test_two(): assert 0",
1886 "sub/test_three.py": """
1887 def test_three_1(): pass
1888 def test_three_2(): assert 0
1889 def test_three_3(): pass
1890 """,
1891 }
1892 )
1893
1894 def test_normal_verbosity(self, pytester: Pytester, test_files) -> None:
1895 result = pytester.runpytest("-o", "console_output_style=classic")

Callers

nothing calls this directly

Calls 1

makepyfileMethod · 0.45

Tested by

no test coverage detected