Skip to content

Commit a3de7f4

Browse files
committed
Update test database connection string
1 parent 25fd190 commit a3de7f4

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ jobs:
3838
pip install --upgrade sqlalchemy=="${SQLALCHEMY_VERSION}"
3939
pytest
4040
env:
41-
TEST_DATABASE_URL: postgresql://postgres@localhost:5432/pytest_test
41+
TEST_DATABASE_URL: postgresql://postgres:postgres@localhost:5432/pytest_test
4242
SQLALCHEMY_VERSION: ${{ matrix.sqlalchemy }}

tests/_conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ def database(request):
3030
pg_host = DB_OPTS.get("host")
3131
pg_port = DB_OPTS.get("port")
3232
pg_user = DB_OPTS.get("username")
33+
pg_pass = DB_OPTS.get("password")
3334
pg_db = DB_OPTS["database"]
3435

35-
init_postgresql_database(pg_user, pg_host, pg_port, pg_db)
36+
init_postgresql_database(pg_user, pg_host, pg_port, pg_db, pg_pass)
3637

3738
@request.addfinalizer
3839
def drop_database():

tests/test_configs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,14 @@ def database(request):
9999
pg_host = DB_OPTS.get("host")
100100
pg_port = DB_OPTS.get("port")
101101
pg_user = DB_OPTS.get("username")
102+
pg_pass = DB_OPTS.get("password")
102103
pg_db = DB_OPTS["database"]
103104
104-
init_postgresql_database(pg_user, pg_host, pg_port, pg_db)
105+
init_postgresql_database(pg_user, pg_host, pg_port, pg_db, pg_pass)
105106
106107
@request.addfinalizer
107108
def drop_database():
108-
drop_postgresql_database(pg_user, pg_host, pg_port, pg_db, 9.6)
109+
drop_postgresql_database(pg_user, pg_host, pg_port, pg_db, 9.6, pg_pass)
109110
110111
111112
@pytest.fixture(scope='session')

0 commit comments

Comments
 (0)