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

Method many_files

testing/test_terminal.py:2145–2159  ·  view source on GitHub ↗
(self, pytester: Pytester, contest_with_teardown_fixture)

Source from the content-addressed store, hash-verified

2143
2144 @pytest.fixture
2145 def many_files(self, pytester: Pytester, contest_with_teardown_fixture) -> None:
2146 pytester.makepyfile(
2147 test_bar="""
2148 import pytest
2149 @pytest.mark.parametrize('i', range(5))
2150 def test_bar(fail_teardown, i):
2151 pass
2152 """,
2153 test_foo="""
2154 import pytest
2155 @pytest.mark.parametrize('i', range(15))
2156 def test_foo(fail_teardown, i):
2157 pass
2158 """,
2159 )
2160
2161 def test_teardown_simple(
2162 self, pytester: Pytester, contest_with_teardown_fixture

Callers

nothing calls this directly

Calls 1

makepyfileMethod · 0.45

Tested by

no test coverage detected