MCPcopy Index your code
hub / github.com/pytest-dev/pytest / test_pytest_param_id_requires_string

Function test_pytest_param_id_requires_string

testing/test_mark.py:1185–1193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1183
1184
1185def test_pytest_param_id_requires_string() -> None:
1186 with pytest.raises(TypeError) as excinfo:
1187 pytest.param(id=True) # type: ignore[arg-type]
1188 (msg,) = excinfo.value.args
1189 expected = (
1190 "Expected id to be a string or a `pytest.HIDDEN_PARAM` sentinel, "
1191 "got <class 'bool'>: True"
1192 )
1193 assert msg == expected
1194
1195
1196@pytest.mark.parametrize("s", (None, "hello world"))

Callers

nothing calls this directly

Calls 1

paramMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…