From 134ffa18e2a3e1ee24d3ccb75d326849e9172ff7 Mon Sep 17 00:00:00 2001 From: Angelo Fenoglio Date: Thu, 17 Oct 2024 15:56:17 -0300 Subject: [PATCH] Fix test --- tests/test_modules/test_auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_modules/test_auth.py b/tests/test_modules/test_auth.py index 8332911..cb03381 100644 --- a/tests/test_modules/test_auth.py +++ b/tests/test_modules/test_auth.py @@ -251,6 +251,7 @@ def test_refresh_layer_credentials_still_valid(mock_open, mock_boto, sso_contain @mock.patch("leverage.modules.auth.update_config_section") @mock.patch("builtins.open", side_effect=open_side_effect) @mock.patch("time.time", new=Mock(return_value=1705859000)) +@mock.patch("boto3.client", return_value=b3_client) @mock.patch("pathlib.Path.touch", new=Mock()) def test_refresh_layer_credentials(mock_boto, mock_open, mock_update_conf, sso_container, propagate_logs): refresh_layer_credentials(sso_container)