File: test_check_and_assert.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 (5 lines) | stat: -rw-r--r-- 229 bytes parent folder | download | duplicates (2)
1
2
3
4
5
def test_check_and_assert(pytester):
    pytester.copy_example("examples/test_example_check_and_assert.py")
    result = pytester.runpytest()
    result.assert_outcomes(failed=2)
    result.stdout.fnmatch_lines(["* 2 failed *"])