From 2414b09c0ffd8059834b49ec1c75ba78cd234570 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Fri, 31 May 2024 09:47:19 -0700 Subject: [PATCH] fix flake8 --- app/s3_client/__init__.py | 2 +- notifications_utils/s3.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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: