Created
February 18, 2017 19:23
-
-
Save harshvb7/91f3aa3f60c322e6171fce9ec182aada 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 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