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

Method test_boolop_percent

testing/test_assertrewrite.py:493–502  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

491 assert getmsg(f2) == "assert not (5 % 4)"
492
493 def test_boolop_percent(self) -> None:
494 def f1() -> None:
495 assert 3 % 2 and False
496
497 assert getmsg(f1) == "assert ((3 % 2) and False)"
498
499 def f2() -> None:
500 assert False or 4 % 2
501
502 assert getmsg(f2) == "assert (False or (4 % 2))"
503
504 def test_at_operator_issue1290(self, pytester: Pytester) -> None:
505 pytester.makepyfile(

Callers

nothing calls this directly

Calls 1

getmsgFunction · 0.85

Tested by

no test coverage detected