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

Method test_boolop_percent

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

Source from the content-addressed store, hash-verified

702 assert getmsg(f2) == "assert not (5 % 4)"
703
704 def test_boolop_percent(self) -> None:
705 def f1() -> None:
706 assert 3 % 2 and False
707
708 assert getmsg(f1) == "assert ((3 % 2) and False)"
709
710 def f2() -> None:
711 assert False or 4 % 2
712
713 assert getmsg(f2) == "assert (False or (4 % 2))"
714
715 def test_at_operator_issue1290(self, pytester: Pytester) -> None:
716 pytester.makepyfile(

Callers

nothing calls this directly

Calls 1

getmsgFunction · 0.85

Tested by

no test coverage detected