Skip to content

Instantly share code, notes, and snippets.

@hackebrot
Created November 15, 2014 11:22
Show Gist options
  • Save hackebrot/c0466df05e905270b778 to your computer and use it in GitHub Desktop.
Save hackebrot/c0466df05e905270b778 to your computer and use it in GitHub Desktop.
py.test skipif reasons
#!/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