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

Method pytester

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

Source from the content-addressed store, hash-verified

1530class TestFixtureManagerParseFactories:
1531 @pytest.fixture
1532 def pytester(self, pytester: Pytester) -> Pytester:
1533 pytester.makeconftest(
1534 """
1535 import pytest
1536
1537 @pytest.fixture
1538 def hello(request):
1539 return "conftest"
1540
1541 @pytest.fixture
1542 def fm(request):
1543 return request._fixturemanager
1544
1545 @pytest.fixture
1546 def item(request):
1547 return request._pyfuncitem
1548 """
1549 )
1550 return pytester
1551
1552 def test_parsefactories_evil_objects_issue214(self, pytester: Pytester) -> None:
1553 pytester.makepyfile(

Callers

nothing calls this directly

Calls 1

makeconftestMethod · 0.45

Tested by

no test coverage detected