Skip to content

Commit

Permalink
it works as intended
Browse files Browse the repository at this point in the history
  • Loading branch information
azliu0 committed Apr 15, 2024
1 parent acc79ce commit f75161f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def db_url(db_name="pigeondb_test"):
dbname="postgres",
user="postgres",
password="password",
host="localhost",
host="database",
port="5432",
)
conn.set_isolation_level(ISOLATION_LEVEL_AUTOCOMMIT)
Expand All @@ -38,7 +38,7 @@ def db_url(db_name="pigeondb_test"):

conn.close()

yield "postgresql://postgres:password@localhost/pigeondb_test"
yield "postgresql://postgres:password@database/pigeondb_test"


@pytest.fixture(scope="session")
Expand All @@ -48,7 +48,7 @@ def redis_db_index():
Flushes test db if it already exists.
"""
test_db_index = 1
client = redis.Redis(host="localhost", port=6379, db=test_db_index)
client = redis.Redis(host="redis", port=6379, db=test_db_index)
client.flushdb()
client.close()

Expand Down

0 comments on commit f75161f

Please sign in to comment.