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

Method assert_result_warns

testing/test_warnings.py:558–559  ·  view source on GitHub ↗
(result, msg)

Source from the content-addressed store, hash-verified

556class TestAssertionWarnings:
557 @staticmethod
558 def assert_result_warns(result, msg) -> None:
559 result.stdout.fnmatch_lines(["*PytestAssertRewriteWarning: %s*" % msg])
560
561 def test_tuple_warning(self, pytester: Pytester) -> None:
562 pytester.makepyfile(

Callers 1

test_tuple_warningMethod · 0.95

Calls 1

fnmatch_linesMethod · 0.80

Tested by

no test coverage detected