From 199b1deacb3acfaad400e58e5db144b1bc737265 Mon Sep 17 00:00:00 2001 From: vitor-aignosi Date: Mon, 1 Sep 2025 16:07:42 -0300 Subject: [PATCH] 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. --- tests/activities/test_activities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/activities/test_activities.py b/tests/activities/test_activities.py index 2740d18..ecb5c8d 100644 --- a/tests/activities/test_activities.py +++ b/tests/activities/test_activities.py @@ -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()