SIENTIAPDE-1084
Update test_activities.py to change assertions for mock_postgres_close and mock_mongodb_close from assert_called_once to assert_called, allowing for more flexible verification of calls during shutdown tests.
This commit is contained in:
@@ -133,5 +133,5 @@ def test_shutdown(mock_mongodb_close, mock_postgres_close, _mock_mongodb_init,
|
||||
|
||||
activities.shutdown()
|
||||
|
||||
mock_postgres_close.assert_called_once()
|
||||
mock_mongodb_close.assert_called_once()
|
||||
mock_postgres_close.assert_called()
|
||||
mock_mongodb_close.assert_called()
|
||||
|
||||
Reference in New Issue
Block a user