(self, pytester: Pytester)
| 559 | result.stdout.fnmatch_lines(["*PytestAssertRewriteWarning: %s*" % msg]) |
| 560 | |
| 561 | def test_tuple_warning(self, pytester: Pytester) -> None: |
| 562 | pytester.makepyfile( |
| 563 | """\ |
| 564 | def test_foo(): |
| 565 | assert (1,2) |
| 566 | """ |
| 567 | ) |
| 568 | result = pytester.runpytest() |
| 569 | self.assert_result_warns( |
| 570 | result, "assertion is always true, perhaps remove parentheses?" |
| 571 | ) |
| 572 | |
| 573 | |
| 574 | def test_warnings_checker_twice() -> None: |
nothing calls this directly
no test coverage detected