PyTest test any expression
def test_expression_equal():
a = 3
assert a % 2 == 0
$ pytest test_expression_equal.py
def test_expression_equal():
a = 3
> assert a % 2 == 0
E assert (3 % 2) == 0
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
def test_expression_equal():
a = 3
assert a % 2 == 0
$ pytest test_expression_equal.py
def test_expression_equal():
a = 3
> assert a % 2 == 0
E assert (3 % 2) == 0