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

Function test_error_message_with_parametrized_fixtures

testing/test_unittest.py:1114–1123  ·  view source on GitHub ↗
(pytester: Pytester)

Source from the content-addressed store, hash-verified

1112
1113
1114def test_error_message_with_parametrized_fixtures(pytester: Pytester) -> None:
1115 pytester.copy_example("unittest/test_parametrized_fixture_error_message.py")
1116 result = pytester.runpytest()
1117 result.stdout.fnmatch_lines(
1118 [
1119 "*test_two does not support fixtures*",
1120 "*TestSomethingElse::test_two",
1121 "*Function type: TestCaseFunction",
1122 ]
1123 )
1124
1125
1126@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
copy_exampleMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected