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

Function test_fixture_named_request

testing/python/fixtures.py:4340–4348  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

4338
4339
4340def test_fixture_named_request(pytester: Pytester) -> None:
4341 pytester.copy_example("fixtures/test_fixture_named_request.py")
4342 result = pytester.runpytest()
4343 result.stdout.fnmatch_lines(
4344 [
4345 "*'request' is a reserved word for fixtures, use another name:",
4346 " *test_fixture_named_request.py:5",
4347 ]
4348 )
4349
4350
4351def test_indirect_fixture_does_not_break_scope(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
copy_exampleMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected