Created
November 15, 2014 11:22
-
-
Save hackebrot/c0466df05e905270b778 to your computer and use it in GitHub Desktop.
py.test skipif reasons
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import pytest | |
first_condition = False | |
second_condition = True | |
@pytest.mark.skipif(first_condition, reason='first_condition') | |
@pytest.mark.skipif(second_condition, reason='second_condition') | |
def test_foobar(): | |
assert False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment