Skip to content

test: fix hardcoded value in startup log test #1345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions tests/integration/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import time

import pytest
from django.conf import settings

from aap_eda import asgi, wsgi

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

assert "Starting eda-server" in caplog.text

# hardcoded value to not depends on settings
# and be able to handle unexpected lookups
assert "HOST: localhost" in caplog.text
assert f"HOST: {settings.DB_HOST}" in caplog.text


def test_worker_startup_logs():
Expand Down