test_pytest_pass_fail.py 460 B

12345678910111213141516171819202122
  1. # -*- coding: utf-8 -*-
  2. """
  3. tests.unit.test_pytest_pass_fail
  4. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5. Some tests to make sure our pytest usage doesn't break regular pytest behviour
  6. """
  7. from __future__ import absolute_import
  8. import pytest
  9. @pytest.mark.xfail(
  10. strict=True,
  11. reason="This test should always fail. If it passes, we messed up pytest",
  12. )
  13. def test_should_always_fail():
  14. assert False
  15. def test_should_always_pass():
  16. assert True