File tree Expand file tree Collapse file tree
backend/app/tests/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ def test_init_successful_connection() -> None:
2424 except Exception :
2525 connection_successful = False
2626
27- assert (
28- connection_successful
29- ), "The database connection should be successful and not raise an exception."
27+ assert connection_successful , (
28+ "The database connection should be successful and not raise an exception."
29+ )
3030
31- assert session_mock .exec .called_once_with (
32- select ( 1 )
33- ), "The session should execute a select statement once."
31+ assert session_mock .exec .called_once_with (select ( 1 )), (
32+ "The session should execute a select statement once."
33+ )
Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ def test_init_successful_connection() -> None:
2424 except Exception :
2525 connection_successful = False
2626
27- assert (
28- connection_successful
29- ), "The database connection should be successful and not raise an exception."
27+ assert connection_successful , (
28+ "The database connection should be successful and not raise an exception."
29+ )
3030
31- assert session_mock .exec .called_once_with (
32- select ( 1 )
33- ), "The session should execute a select statement once."
31+ assert session_mock .exec .called_once_with (select ( 1 )), (
32+ "The session should execute a select statement once."
33+ )
You can’t perform that action at this time.
0 commit comments