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

Method pytester

testing/python/fixtures.py:1762–1786  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

1760class TestAutouseDiscovery:
1761 @pytest.fixture
1762 def pytester(self, pytester: Pytester) -> Pytester:
1763 pytester.makeconftest(
1764 """
1765 import pytest
1766 @pytest.fixture(autouse=True)
1767 def perfunction(request, tmp_path):
1768 pass
1769
1770 @pytest.fixture()
1771 def arg1(tmp_path):
1772 pass
1773 @pytest.fixture(autouse=True)
1774 def perfunction2(arg1):
1775 pass
1776
1777 @pytest.fixture
1778 def fm(request):
1779 return request._fixturemanager
1780
1781 @pytest.fixture
1782 def item(request):
1783 return request._pyfuncitem
1784 """
1785 )
1786 return pytester
1787
1788 def test_parsefactories_conftest(self, pytester: Pytester) -> None:
1789 pytester.makepyfile(

Callers

nothing calls this directly

Calls 1

makeconftestMethod · 0.45

Tested by

no test coverage detected