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

Function test_basic

testing/test_mark_expression.py:48–52  ·  view source on GitHub ↗
(expr: str, expected: bool)

Source from the content-addressed store, hash-verified

46 ),
47)
48def test_basic(expr: str, expected: bool) -> None:
49 def matcher(name: str, /, **kwargs: str | int | bool | None) -> bool:
50 return {"true": True, "false": False}[name]
51
52 assert evaluate(expr, matcher) is expected
53
54
55@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

evaluateFunction · 0.85

Tested by

no test coverage detected