From ddd8c67a427ab4eff0429b3c98cc9d3390eee9d7 Mon Sep 17 00:00:00 2001 From: Pavel Tisnovsky Date: Wed, 22 Jan 2025 18:59:48 +0100 Subject: [PATCH] Fixed tests --- ols/app/endpoints/feedback.py | 4 +++- tests/e2e/test_api.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ols/app/endpoints/feedback.py b/ols/app/endpoints/feedback.py index d9fc47dc..9eadfed4 100644 --- a/ols/app/endpoints/feedback.py +++ b/ols/app/endpoints/feedback.py @@ -85,7 +85,9 @@ def feedback_status() -> StatusResponse: """ logger.debug("feedback status request received") feedback_status_enabled = is_feedback_enabled() - return StatusResponse(functionality="feedback", status={"enabled": feedback_status_enabled}) + return StatusResponse( + functionality="feedback", status={"enabled": feedback_status_enabled} + ) post_feedback_responses: dict[int | str, dict[str, Any]] = { diff --git a/tests/e2e/test_api.py b/tests/e2e/test_api.py index 41fbb326..90842d60 100644 --- a/tests/e2e/test_api.py +++ b/tests/e2e/test_api.py @@ -91,8 +91,8 @@ def teardown_module(module): must_gather() -@pytest.fixture(scope="module") -def postgres_connection(): +@pytest.fixture(name="postgres_connection", scope="module") +def fixture_postgres_connection(): """Fixture with Postgres connection.""" return retrieve_connection()