MCPcopy
hub / github.com/pallets/werkzeug / test_proxy_binop_int

Function test_proxy_binop_int

tests/test_local.py:284–288  ·  view source on GitHub ↗
(op)

Source from the content-addressed store, hash-verified

282 ],
283)
284def test_proxy_binop_int(op):
285 _, p = _make_proxy(2)
286 assert op(p, 3) == op(2, 3)
287 # r-op
288 assert op(3, p) == op(3, 2)
289
290
291@pytest.mark.parametrize("op", [operator.neg, operator.pos, abs, operator.invert])

Callers

nothing calls this directly

Calls 1

_make_proxyFunction · 0.85

Tested by

no test coverage detected