Refactor storage URL retrieval to use get_uploaded_file_url.
Some checks failed
Build and Push Docker Images / build-frontend (push) Blocked by required conditions
Build and Push Docker Images / changes (push) Successful in 3s
Build and Push Docker Images / build-backend (push) Has been cancelled

Replaced calls to get_file_url with get_uploaded_file_url where appropriate. Added the get_uploaded_file_url method to the StorageProvider class and its implementations for more specific URL generation. Updated corresponding tests and API routes to reflect this change.
This commit is contained in:
2025-03-14 00:05:07 +01:00
parent 8c1e6b7ebe
commit 0cf5498762
3 changed files with 13 additions and 5 deletions

View File

@@ -70,6 +70,6 @@ def test_get_file_url(test_storage):
"""Test getting a file URL."""
file_path = "images/test.jpg"
url = test_storage.get_file_url(file_path)
url = test_storage.get_uploaded_file_url(file_path)
assert url == f"/test-files/{file_path}"