File: test_example_simple.py

package info (click to toggle)
pytest-check 2.7.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 480 kB
  • sloc: python: 2,220; sh: 17; makefile: 6
file content (14 lines) | stat: -rw-r--r-- 208 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""
Just a simple test to show passing and failing checks.
"""
from pytest_check import check


def test_pass():
    with check:
        assert 1 == 1


def test_fail():
    with check:
        assert 1 == 2