Flake8 stuff.

Signed-off-by: Cliff Hill <Clifford.hill@gsa.gov>
This commit is contained in:
Cliff Hill
2024-11-05 17:25:58 -05:00
parent 5a9b867d7a
commit 50754d92c4

View File

@@ -1,7 +1,7 @@
import os import os
from datetime import timedelta from datetime import timedelta
from os import getenv from os import getenv
from unittest.mock import ANY, MagicMock, Mock, call, patch from unittest.mock import MagicMock, Mock, call, patch
import botocore import botocore
import pytest import pytest
@@ -379,7 +379,10 @@ def test_file_exists_false(notify_api, mocker):
def test_get_s3_files_success(client, mocker): def test_get_s3_files_success(client, mocker):
mock_current_app = mocker.patch("app.aws.s3.current_app") mock_current_app = mocker.patch("app.aws.s3.current_app")
mock_current_app.config = {"CSV_UPLOAD_BUCKET": {"bucket": "test-bucket"}, "job_cache": {}} mock_current_app.config = {
"CSV_UPLOAD_BUCKET": {"bucket": "test-bucket"},
"job_cache": {},
}
mock_thread_pool_executor = mocker.patch("app.aws.s3.ThreadPoolExecutor") mock_thread_pool_executor = mocker.patch("app.aws.s3.ThreadPoolExecutor")
mock_read_s3_file = mocker.patch("app.aws.s3.read_s3_file") mock_read_s3_file = mocker.patch("app.aws.s3.read_s3_file")
mock_list_s3_objects = mocker.patch("app.aws.s3.list_s3_objects") mock_list_s3_objects = mocker.patch("app.aws.s3.list_s3_objects")