Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pytest
- class TestConditionalXFails:
- @pytest.mark.xfail("config.getvalue('platform') == 'MAC'")
- def test_xfail_platform(self, mozwebqa):
- assert False
- @pytest.mark.xfail("config.getvalue('browser_name') == 'firefox'")
- def test_xfail_browser_name(self, mozwebqa):
- assert False
- @pytest.mark.xfail("config.getvalue('browser_name') == 'firefox' and "
- "int(config.getvalue('browser_version')) >= 10 and "
- "config.getvalue('platform') == 'MAC'")
- def test_xfail_browser_name_and_version_and_platform(self, mozwebqa):
- assert False
Add Comment
Please, Sign In to add comment