File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
src/simcore_service_storage/api/rest Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 4040from ...modules .long_running_tasks import get_completed_upload_tasks
4141from ...simcore_s3_dsm import SimcoreS3DataManager
4242from ...utils .utils import create_upload_completion_task_name
43+ from .dependencies .dsm_prodiver import get_data_manager
4344
4445_logger = logging .getLogger (__name__ )
4546
5758async 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 (
Original file line number Diff line number Diff 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+ ...
You can’t perform that action at this time.
0 commit comments