test_xfail.py 201 B

123456789101112131415
  1. import pytest
  2. @pytest.mark.xfail(strict=True)
  3. def test_succeed():
  4. assert True
  5. @pytest.mark.xfail
  6. def test_not_succeed():
  7. assert False
  8. @pytest.mark.skip
  9. def test_skipped():
  10. assert False