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

Method many_tests_files

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

Source from the content-addressed store, hash-verified

1923class TestProgressOutputStyle:
1924 @pytest.fixture
1925 def many_tests_files(self, pytester: Pytester) -> None:
1926 pytester.makepyfile(
1927 test_bar="""
1928 import pytest
1929 @pytest.mark.parametrize('i', range(10))
1930 def test_bar(i): pass
1931 """,
1932 test_foo="""
1933 import pytest
1934 @pytest.mark.parametrize('i', range(5))
1935 def test_foo(i): pass
1936 """,
1937 test_foobar="""
1938 import pytest
1939 @pytest.mark.parametrize('i', range(5))
1940 def test_foobar(i): pass
1941 """,
1942 )
1943
1944 def test_zero_tests_collected(self, pytester: Pytester) -> None:
1945 """Some plugins (testmon for example) might issue pytest_runtest_logreport without any tests being

Callers

nothing calls this directly

Calls 1

makepyfileMethod · 0.45

Tested by

no test coverage detected