Skip to content

Instantly share code, notes, and snippets.

@bryanwb
Created February 18, 2016 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanwb/1380dd5732b23be2dad2 to your computer and use it in GitHub Desktop.
Save bryanwb/1380dd5732b23be2dad2 to your computer and use it in GitHub Desktop.
import pytest
@pytest.fixture(scope='session')
def fixture1():
return dict()
@pytest.fixture
def fixture2(fixture1):
return id(fixture1)
@pytest.fixture
def fixture3(fixture1):
return id(fixture1)
def test_fixtures(fixture2, fixture3):
print(fixture2)
print(fixture3)
assert 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment