Add storage utilities and tests for file handling and tokens
All checks were successful
Build and Push Docker Images / changes (push) Successful in 5s
Build and Push Docker Images / build-backend (push) Successful in 51s
Build and Push Docker Images / build-frontend (push) Has been skipped

Introduced new fixtures and tests for storage functionality, including saving files, generating URLs, and token creation/verification. Refactored `get_storage_provider` into a separate dependency module. Enhanced test coverage for improved reliability.
This commit is contained in:
2025-03-12 18:50:30 +01:00
parent 9879353ac1
commit 38acdb78a1
5 changed files with 144 additions and 8 deletions

View File

@@ -0,0 +1,10 @@
from app.core.config import settings
from app.core.storage import StorageProvider, LocalStorageProvider
def get_storage_provider() -> StorageProvider:
"""Dependency for getting the configured storage provider."""
return LocalStorageProvider(
upload_folder=settings.UPLOAD_FOLDER,
files_url_path="/files"
)