Skip to content

Commit b87c3de

Browse files
committed
aligning
1 parent 9fea71b commit b87c3de

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

services/storage/tests/unit/test_handlers_paths.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88

99

1010
from pathlib import Path
11-
from typing import Any
1211

1312
import httpx
1413
from fastapi import FastAPI
1514
from fastapi_pagination import LimitOffsetPage
1615
from models_library.api_schemas_storage import FileMetaDataGet, PathMetaDataGet
16+
from models_library.projects import ProjectAtDB
1717
from models_library.projects_nodes_io import LocationID, NodeID, SimcoreS3FileID
1818
from models_library.users import UserID
1919
from pytest_simcore.helpers.fastapi import url_from_operation_id
@@ -54,7 +54,7 @@ async def test_list_paths_root_folder(
5454
location_id: LocationID,
5555
user_id: UserID,
5656
with_random_project_with_files: tuple[
57-
dict[str, Any],
57+
ProjectAtDB,
5858
dict[NodeID, dict[SimcoreS3FileID, dict[str, Path | str]]],
5959
],
6060
):

services/storage/tests/unit/test_handlers_simcore_s3.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -336,21 +336,21 @@ async def test_copy_folders_from_valid_project(
336336

337337
async def _create_and_delete_folders_from_project(
338338
user_id: UserID,
339-
project: dict[str, Any],
339+
project: ProjectAtDB,
340340
initialized_app: FastAPI,
341341
client: httpx.AsyncClient,
342342
project_db_creator: Callable,
343343
check_list_files: bool,
344344
) -> None:
345-
destination_project, nodes_map = clone_project_data(project)
345+
destination_project, nodes_map = clone_project_data(project.model_dump(mode="json"))
346346
await project_db_creator(**destination_project)
347347

348348
# creating a copy
349349
data = await _request_copy_folders(
350350
initialized_app,
351351
client,
352352
user_id,
353-
project,
353+
project.model_dump(mode="json"),
354354
destination_project,
355355
nodes_map={NodeID(i): NodeID(j) for i, j in nodes_map.items()},
356356
)
@@ -429,7 +429,7 @@ async def test_create_and_delete_folders_from_project(
429429
user_id: UserID,
430430
create_project: Callable[..., Awaitable[dict[str, Any]]],
431431
with_random_project_with_files: tuple[
432-
dict[str, Any],
432+
ProjectAtDB,
433433
dict[NodeID, dict[SimcoreS3FileID, dict[str, Path | str]]],
434434
],
435435
mock_datcore_download,
@@ -453,7 +453,7 @@ async def test_create_and_delete_folders_from_project_burst(
453453
client: httpx.AsyncClient,
454454
user_id: UserID,
455455
with_random_project_with_files: tuple[
456-
dict[str, Any],
456+
ProjectAtDB,
457457
dict[NodeID, dict[SimcoreS3FileID, dict[str, Path | str]]],
458458
],
459459
create_project: Callable[..., Awaitable[dict[str, Any]]],

0 commit comments

Comments
 (0)