PyTest - Basics and Setup
Identify the error in this PyTest test function:
def test_sum():
total = 2 + 2
assert total = 4def test_sum():
total = 2 + 2
assert total = 4= which is assignment, not comparison. It should be ==.test_ and indentation is correct, so no error there.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions