Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tisnik committed Jan 22, 2025
1 parent 474c6b9 commit ddd8c67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion ols/app/endpoints/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]] = {
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit ddd8c67

Please sign in to comment.