From 4aee2c6050c165243f41d0d37c73b96c45be6896 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Fri, 27 Jun 2025 12:20:50 -0700 Subject: [PATCH] don't use global s3 client --- tests/app/aws/test_s3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/aws/test_s3.py b/tests/app/aws/test_s3.py index c0d5be08e..4e5e8a847 100644 --- a/tests/app/aws/test_s3.py +++ b/tests/app/aws/test_s3.py @@ -605,7 +605,7 @@ def test_get_s3_files_handles_exception(mocker): def test_get_s3_client_default_credentials(): with patch.dict(os.environ, {}, clear=True): - with patch("app.aws.s3.boto3.session.Session") as mock_session: + with patch("app.aws.s3.Session") as mock_session: mock_client = MagicMock() mock_session.return_value.client.return_value = mock_client client = get_s3_client()