diff --git a/app/s3_client/__init__.py b/app/s3_client/__init__.py index d5fa38189..7de3509d2 100644 --- a/app/s3_client/__init__.py +++ b/app/s3_client/__init__.py @@ -40,7 +40,7 @@ def get_s3_object( teststr = str(s3.Bucket(bucket_name).creation_date).lower() if "magicmock" not in teststr: raise Exception( - f"Test is not mocked, use @mock_aws or the relevant mocker.patch to avoid accessing S3" + "Test is not mocked, use @mock_aws or the relevant mocker.patch to avoid accessing S3" ) return obj diff --git a/notifications_utils/s3.py b/notifications_utils/s3.py index 6f7f2ce1d..d33cbe25a 100644 --- a/notifications_utils/s3.py +++ b/notifications_utils/s3.py @@ -47,7 +47,7 @@ def s3upload( teststr = str(_s3.Bucket(bucket_name).creation_date).lower() if "magicmock" not in teststr: raise Exception( - f"Test is not mocked, use @mock_aws or the relevant mocker.patch to avoid accessing S3" + "Test is not mocked, use @mock_aws or the relevant mocker.patch to avoid accessing S3" ) key = _s3.Object(bucket_name, file_location) @@ -102,7 +102,7 @@ def s3download( teststr = str(s3.Bucket(bucket_name).creation_date).lower() if "magicmock" not in teststr: raise Exception( - f"Test is not mocked, use @mock_aws or the relevant mocker.patch to avoid accessing S3" + "Test is not mocked, use @mock_aws or the relevant mocker.patch to avoid accessing S3" ) return key.get()["Body"] except botocore.exceptions.ClientError as error: