Add events to make it posible to do some basic admin and rights
This commit is contained in:
@@ -24,10 +24,10 @@ 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."
|
||||
)
|
||||
|
||||
assert session_mock.exec.called_once_with(
|
||||
select(1)
|
||||
), "The session should execute a select statement once."
|
||||
assert session_mock.exec.called_once_with(select(1)), (
|
||||
"The session should execute a select statement once."
|
||||
)
|
||||
|
||||
@@ -24,10 +24,10 @@ 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."
|
||||
)
|
||||
|
||||
assert session_mock.exec.called_once_with(
|
||||
select(1)
|
||||
), "The session should execute a select statement once."
|
||||
assert session_mock.exec.called_once_with(select(1)), (
|
||||
"The session should execute a select statement once."
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user