MCPcopy
hub / github.com/pytest-dev/pytest / test_error_message_with_parametrized_fixtures

Function test_error_message_with_parametrized_fixtures

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

Source from the content-addressed store, hash-verified

1182
1183
1184def test_error_message_with_parametrized_fixtures(pytester: Pytester) -> None:
1185 pytester.copy_example("unittest/test_parametrized_fixture_error_message.py")
1186 result = pytester.runpytest()
1187 result.stdout.fnmatch_lines(
1188 [
1189 "*test_two does not support fixtures*",
1190 "*TestSomethingElse::test_two",
1191 "*Function type: TestCaseFunction",
1192 ]
1193 )
1194
1195
1196@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

Used in the wild real call sites across dependent graphs

searching dependent graphs…