File: test_example_summary.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 (20 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from pytest_check import check

def test_assert_no_msg():
    a, b = 1, 2
    assert a == b


def test_assert_msg():
    a, b = 1, 2
    assert a == b, f"comment about a={a} != b={b}"


def test_check_no_msg():
    a, b = 1, 2
    check.equal(a, b)


def test_check_msg():
    a, b = 1, 2
    check.equal(a, b, f"comment about a={a} != b={b}")