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

Function test_syntax_oddities

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

Source from the content-addressed store, hash-verified

64 ),
65)
66def test_syntax_oddities(expr: str, expected: bool) -> None:
67 def matcher(name: str, /, **kwargs: str | int | bool | None) -> bool:
68 return {"true": True, "false": False}[name]
69
70 assert evaluate(expr, matcher) is expected
71
72
73def test_backslash_not_treated_specially() -> None:

Callers

nothing calls this directly

Calls 1

evaluateFunction · 0.85

Tested by

no test coverage detected