Created
November 8, 2012 21:50
-
-
Save hpk42/4041914 to your computer and use it in GitHub Desktop.
This file contains 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 DriverPerSession(): | |
pass | |
@pytest.fixture(scope="session") | |
def driver(): | |
return DriverPerSession() | |
@pytest.fixture(scope="function") | |
def instdriver(request, driver): | |
request.instance.driver = driver | |
# plus any extra setup stuff you want to do |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment