Skip to content

Commit b712b65

Browse files
committed
more robust test
1 parent d7f1d81 commit b712b65

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services/storage/tests/unit/test_handlers_paths.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from fastapi import FastAPI, status
2020
from fastapi_pagination.cursor import CursorPage
2121
from models_library.api_schemas_storage.storage_schemas import PathMetaDataGet
22+
from models_library.api_schemas_webserver.storage import MAX_NUMBER_OF_PATHS_PER_PAGE
2223
from models_library.projects_nodes_io import LocationID, NodeID, SimcoreS3FileID
2324
from models_library.users import UserID
2425
from 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

0 commit comments

Comments
 (0)