Skip to content

Commit e257eaa

Browse files
authored
Show alternative method to define database URI
Show an alternative method for defining database URI on the README file, since probably many users do not want to set the URI through the command line.
1 parent bb81254 commit e257eaa

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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)