PyTest - Markers
Find the problem in this pytest test:
import pytest
@pytest.mark.xfail(strict=True)
def test_bug():
assert 1 == 1import pytest
@pytest.mark.xfail(strict=True)
def test_bug():
assert 1 == 1strict=True, if the test passes unexpectedly, pytest marks it as a failure.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions