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

Method test_newstyle_with_request

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

Source from the content-addressed store, hash-verified

1060 assert "\x1b[32mtmp_path" in result.stdout.str()
1061
1062 def test_newstyle_with_request(self, pytester: Pytester) -> None:
1063 pytester.makepyfile(
1064 """
1065 import pytest
1066 @pytest.fixture()
1067 def arg(request):
1068 pass
1069 def test_1(arg):
1070 pass
1071 """
1072 )
1073 reprec = pytester.inline_run()
1074 reprec.assertoutcome(passed=1)
1075
1076 def test_setupcontext_no_param(self, pytester: Pytester) -> None:
1077 pytester.makepyfile(

Callers

nothing calls this directly

Calls 3

assertoutcomeMethod · 0.80
makepyfileMethod · 0.45
inline_runMethod · 0.45

Tested by

no test coverage detected