🎨 Format Python scripts tests (#2112)
This commit is contained in:
committed by
GitHub
parent
de9661fc4f
commit
12b2a95a58
@@ -26,8 +26,8 @@ def test_init_successful_connection() -> None:
|
|||||||
except Exception:
|
except Exception:
|
||||||
connection_successful = False
|
connection_successful = False
|
||||||
|
|
||||||
assert (
|
assert connection_successful, (
|
||||||
connection_successful
|
"The database connection should be successful and not raise an exception."
|
||||||
), "The database connection should be successful and not raise an exception."
|
)
|
||||||
|
|
||||||
session_mock.exec.assert_called_once_with(select1)
|
session_mock.exec.assert_called_once_with(select1)
|
||||||
|
|||||||
@@ -26,8 +26,8 @@ def test_init_successful_connection() -> None:
|
|||||||
except Exception:
|
except Exception:
|
||||||
connection_successful = False
|
connection_successful = False
|
||||||
|
|
||||||
assert (
|
assert connection_successful, (
|
||||||
connection_successful
|
"The database connection should be successful and not raise an exception."
|
||||||
), "The database connection should be successful and not raise an exception."
|
)
|
||||||
|
|
||||||
session_mock.exec.assert_called_once_with(select1)
|
session_mock.exec.assert_called_once_with(select1)
|
||||||
|
|||||||
Reference in New Issue
Block a user