Refactor storage URL retrieval to use get_uploaded_file_url.
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:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user