Skip to content

Commit 62de2c6

Browse files
authored
Merge pull request #7 from igortg/patch-1
Show alternative method to define database URI
2 parents bb81254 + e257eaa commit 62de2c6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,10 @@ def test_connection(connection):
3737
You need to provide the connection URL for the engine when invoking the pytest command::
3838

3939
pytest --sqlalchemy-connect-url="postgresql://scott:tiger@localhost:5432/mydatabase"
40+
41+
Or override the `sqlalchemy_connect_url` fixture on your conftest file:
42+
43+
@pytest.fixture()
44+
def sqlalchemy_connect_url():
45+
return 'postgresql://scott:tiger@localhost:5432/mydatabase'
46+

0 commit comments

Comments
 (0)