Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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