File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
services/storage/tests/unit Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1919from fastapi import FastAPI , status
2020from fastapi_pagination .cursor import CursorPage
2121from models_library .api_schemas_storage .storage_schemas import PathMetaDataGet
22+ from models_library .api_schemas_webserver .storage import MAX_NUMBER_OF_PATHS_PER_PAGE
2223from models_library .projects_nodes_io import LocationID , NodeID , SimcoreS3FileID
2324from models_library .users import UserID
2425from pydantic import ByteSize , TypeAdapter
@@ -209,7 +210,7 @@ async def test_list_paths_pagination(
209210 ProjectWithFilesParams (
210211 num_nodes = 1 ,
211212 allowed_file_sizes = (TypeAdapter (ByteSize ).validate_python ("0b" ),),
212- workspace_files_count = 1000 ,
213+ workspace_files_count = MAX_NUMBER_OF_PATHS_PER_PAGE ,
213214 )
214215 ],
215216 ids = str ,
@@ -241,7 +242,7 @@ async def test_list_paths_pagination_large_page(
241242 file_filter = workspace_file_filter ,
242243 expected_paths = expected_paths ,
243244 check_total = False ,
244- limit = 1000 ,
245+ limit = MAX_NUMBER_OF_PATHS_PER_PAGE ,
245246 )
246247
247248
You can’t perform that action at this time.
0 commit comments