PyTest - Markers
What will be the outcome when running this pytest code?
import pytest
@pytest.mark.xfail
def test_example():
assert 3 > 5import pytest
@pytest.mark.xfail
def test_example():
assert 3 > 5@pytest.mark.xfail marker marks a test as expected to fail.3 > 5 is false, so the test would normally fail.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions