Skip to content

Commit afeb845

Browse files
authored
Merge pull request #8 from igortg/patch-2
Set fixture scope for "sqlalchemy_connect_url" fixture sample
2 parents 62de2c6 + 83acfca commit afeb845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ You need to provide the connection URL for the engine when invoking the pytest c
4040

4141
Or override the `sqlalchemy_connect_url` fixture on your conftest file:
4242

43-
@pytest.fixture()
43+
@pytest.fixture(scope="session")
4444
def sqlalchemy_connect_url():
4545
return 'postgresql://scott:tiger@localhost:5432/mydatabase'
4646

0 commit comments

Comments
 (0)