Created
September 13, 2015 00:39
-
-
Save alvinchow86/82ff8671dd8db847e251 to your computer and use it in GitHub Desktop.
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
import pytest | |
class TestOne(object): | |
@pytest.fixture(autouse=True) | |
def setup(self): | |
5 / 0 | |
self.foo = 'foo' | |
def test_one(self): | |
assert self.foo == 'foo' | |
class TestTwo(object): | |
@pytest.fixture | |
def setup(self): | |
5 / 0 | |
self.foo = 'foo' | |
def test_two(self, setup): | |
assert self.foo == 'foo' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment