PyTest - Writing Assertions
Identify the error in this pytest assertion:
def test_check():
y = 10
assert y > 5 "y should be greater than 5"
def test_check():
y = 10
assert y > 5 "y should be greater than 5"
y > 5, causing a syntax error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions