From a4de4737f0e97aa005281f9ac79482149a1d5bb7 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sat, 3 Aug 2024 20:30:31 +0100 Subject: Add S3 utility module and refactor S3 functions into it Created a new `s3.py` utility module for handling S3 interactions including file uploads and generating presigned URLs. Refactored views to utilize these new utility functions and moved the PDF collection type function to a new `utils.py` module to improve code organization and readability. --- pyblackbird_cc/resources/tests/test_file_processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyblackbird_cc/resources/tests/test_file_processing.py') diff --git a/pyblackbird_cc/resources/tests/test_file_processing.py b/pyblackbird_cc/resources/tests/test_file_processing.py index e3514c9..0a0f1a3 100644 --- a/pyblackbird_cc/resources/tests/test_file_processing.py +++ b/pyblackbird_cc/resources/tests/test_file_processing.py @@ -5,7 +5,7 @@ from django.core.files.uploadedfile import TemporaryUploadedFile from django.test import TestCase from django.urls import reverse -from pyblackbird_cc.resources.views import _get_pdf_collection_type +from ..utils import _get_pdf_collection_type from .. import services -- cgit v1.2.3