Skip to content

Instantly share code, notes, and snippets.

@meejah meejah/
Last active Aug 23, 2016

What would you like to do?
from __future__ import print_function
import pytest
def pytest_fixture_setup(fixturedef, request):
print("pytest_fixture_setup before", fixturedef, request)
print("pytest_fixture_setup after", fixturedef, request)
def pytest_runtest_setup(item):
print("BEFORE", item)
print("AFTER", item)
def a_fixture():
import time
return "nothing"
def test_foo(a_fixture):
print("inside test_foo", a_fixture)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.