File: test_message.py

package info (click to toggle)
pytest-check 2.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 432 kB
  • sloc: python: 1,775; sh: 17; makefile: 6
file content (11 lines) | stat: -rw-r--r-- 505 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
def test_baseline(pytester):
    pytester.copy_example("examples/test_example_message.py")
    result = pytester.runpytest("-k baseline")
    result.stdout.fnmatch_lines(["FAILURE: check 1 == 2"])
    result.stdout.no_fnmatch_line("FAILURE: check 1 == 2: comment about a=1 != b=2")


def test_message(pytester):
    pytester.copy_example("examples/test_example_message.py")
    result = pytester.runpytest("-k message")
    result.stdout.fnmatch_lines(["FAILURE: check 1 == 2: comment about a=1 != b=2"])