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

Function exp_match

testing/test_config.py:1285–1289  ·  view source on GitHub ↗
(val: object)

Source from the content-addressed store, hash-verified

1283
1284def test_get_plugin_specs_as_list() -> None:
1285 def exp_match(val: object) -> str:
1286 return (
1287 "Plugins may be specified as a sequence or a ','-separated string of plugin names. Got: %s"
1288 % re.escape(repr(val))
1289 )
1290
1291 with pytest.raises(pytest.UsageError, match=exp_match({"foo"})):
1292 _get_plugin_specs_as_list({"foo"}) # type: ignore[arg-type]

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected