Guest User

Untitled

a guest
Nov 18th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. import pytest
  2.  
  3.  
  4. class TestConditionalXFails:
  5.  
  6. @pytest.mark.xfail("config.getvalue('platform') == 'MAC'")
  7. def test_xfail_platform(self, mozwebqa):
  8. assert False
  9.  
  10. @pytest.mark.xfail("config.getvalue('browser_name') == 'firefox'")
  11. def test_xfail_browser_name(self, mozwebqa):
  12. assert False
  13.  
  14. @pytest.mark.xfail("config.getvalue('browser_name') == 'firefox' and "
  15. "int(config.getvalue('browser_version')) >= 10 and "
  16. "config.getvalue('platform') == 'MAC'")
  17. def test_xfail_browser_name_and_version_and_platform(self, mozwebqa):
  18. assert False
Add Comment
Please, Sign In to add comment