Skip to content

Commit 12b2a95

Browse files
authored
🎨 Format Python scripts tests (#2112)
1 parent de9661f commit 12b2a95

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

backend/tests/scripts/test_backend_pre_start.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def test_init_successful_connection() -> None:
2626
except Exception:
2727
connection_successful = False
2828

29-
assert (
30-
connection_successful
31-
), "The database connection should be successful and not raise an exception."
29+
assert connection_successful, (
30+
"The database connection should be successful and not raise an exception."
31+
)
3232

3333
session_mock.exec.assert_called_once_with(select1)

backend/tests/scripts/test_test_pre_start.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def test_init_successful_connection() -> None:
2626
except Exception:
2727
connection_successful = False
2828

29-
assert (
30-
connection_successful
31-
), "The database connection should be successful and not raise an exception."
29+
assert connection_successful, (
30+
"The database connection should be successful and not raise an exception."
31+
)
3232

3333
session_mock.exec.assert_called_once_with(select1)

0 commit comments

Comments
 (0)