Skip to content

Instantly share code, notes, and snippets.

@harshvb7
Created February 18, 2017 19:23
Show Gist options
  • Save harshvb7/91f3aa3f60c322e6171fce9ec182aada to your computer and use it in GitHub Desktop.
Save harshvb7/91f3aa3f60c322e6171fce9ec182aada to your computer and use it in GitHub Desktop.
import pytest
class TestSomething:
@pytest.fixture
def something(self):
return SomeMagic()
def test_do_something(self, something):
resp = something.do_magic()
assert resp == True
def test_another_thing(self, something):
resp = something.do_weird_thing()
assert resp == False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment