PyTest - Markers
Identify the error in this pytest code snippet:
import pytest
@pytest.mark.skipif(condition=True)
def test_func():
assert Trueimport pytest
@pytest.mark.skipif(condition=True)
def test_func():
assert Trueskipif marker requires a reason argument to explain why the test is skipped.condition=True but does not provide reason, which is mandatory.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions