From 12b2a95a587c8868ce508321a1825a740204e9c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Thu, 22 Jan 2026 11:29:53 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Format=20Python=20scripts=20test?= =?UTF-8?q?s=20(#2112)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/tests/scripts/test_backend_pre_start.py | 6 +++--- backend/tests/scripts/test_test_pre_start.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/tests/scripts/test_backend_pre_start.py b/backend/tests/scripts/test_backend_pre_start.py index 064fca9..e8f35c6 100644 --- a/backend/tests/scripts/test_backend_pre_start.py +++ b/backend/tests/scripts/test_backend_pre_start.py @@ -26,8 +26,8 @@ def test_init_successful_connection() -> None: except Exception: connection_successful = False - assert ( - connection_successful - ), "The database connection should be successful and not raise an exception." + assert connection_successful, ( + "The database connection should be successful and not raise an exception." + ) session_mock.exec.assert_called_once_with(select1) diff --git a/backend/tests/scripts/test_test_pre_start.py b/backend/tests/scripts/test_test_pre_start.py index a4947fd..180bdd5 100644 --- a/backend/tests/scripts/test_test_pre_start.py +++ b/backend/tests/scripts/test_test_pre_start.py @@ -26,8 +26,8 @@ def test_init_successful_connection() -> None: except Exception: connection_successful = False - assert ( - connection_successful - ), "The database connection should be successful and not raise an exception." + assert connection_successful, ( + "The database connection should be successful and not raise an exception." + ) session_mock.exec.assert_called_once_with(select1)