Skip to content

Commit 77c2576

Browse files
test: fix hardcoded value in startup log test (#1345)
Signed-off-by: Alex <[email protected]> Co-authored-by: Bill Wei <[email protected]>
1 parent a4864e8 commit 77c2576

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/integration/test_logging.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import time
44

55
import pytest
6+
from django.conf import settings
67

78
from aap_eda import asgi, wsgi
89

@@ -19,10 +20,7 @@ def test_http_startup_logging(caplog_factory, module):
1920
importlib.reload(module)
2021

2122
assert "Starting eda-server" in caplog.text
22-
23-
# hardcoded value to not depends on settings
24-
# and be able to handle unexpected lookups
25-
assert "HOST: localhost" in caplog.text
23+
assert f"HOST: {settings.DB_HOST}" in caplog.text
2624

2725

2826
def test_worker_startup_logs():

0 commit comments

Comments
 (0)