Skip to content

Commit 8cf43b3

Browse files
committed
correct imports
1 parent cad1d90 commit 8cf43b3

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

services/storage/src/simcore_service_storage/api/rest/_files.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
from ...modules.long_running_tasks import get_completed_upload_tasks
4141
from ...simcore_s3_dsm import SimcoreS3DataManager
4242
from ...utils.utils import create_upload_completion_task_name
43+
from .dependencies.dsm_prodiver import get_data_manager
4344

4445
_logger = logging.getLogger(__name__)
4546

@@ -57,7 +58,7 @@
5758
async def list_paths(
5859
location_id: LocationID,
5960
query_params: Annotated[ListPathsQueryParams, Depends()],
60-
dsm: Annotated[BaseDataManager, Depends(get_dsm_provider)],
61+
dsm: Annotated[BaseDataManager, Depends(get_data_manager)],
6162
):
6263
assert location_id # nosec
6364
data: list[FileMetaData] = await dsm.list_files_paginated(

services/storage/tests/unit/test_handlers_files.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,3 +1525,12 @@ async def test_listing_with_project_id_filter(
15251525
assert project_file_name == list_of_files[0].file_name
15261526
else:
15271527
assert project_files_in_db == {file.file_uuid for file in list_of_files}
1528+
1529+
1530+
async def test_list_paths(
1531+
initialized_app: FastAPI,
1532+
client: httpx.AsyncClient,
1533+
location_id: LocationID,
1534+
user_id: UserID,
1535+
):
1536+
...

0 commit comments

Comments
 (0)