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 | |
@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