Skip to content

Commit f01ae9c

Browse files
author
Andrei Neagu
committed
fixed test
1 parent 710679e commit f01ae9c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

services/web/server/tests/unit/with_dbs/03/test_trash.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import asyncio
1010
from collections.abc import AsyncIterable, Callable
11+
from unittest.mock import MagicMock
1112
from uuid import UUID
1213

1314
import arrow
@@ -125,9 +126,11 @@ async def test_trash_projects( # noqa: PLR0915
125126
)
126127
_, error = await assert_status(
127128
resp,
128-
status.HTTP_409_CONFLICT
129-
if (is_project_running and not force)
130-
else status.HTTP_204_NO_CONTENT,
129+
(
130+
status.HTTP_409_CONFLICT
131+
if (is_project_running and not force)
132+
else status.HTTP_204_NO_CONTENT
133+
),
131134
)
132135

133136
could_not_trash = is_project_running and not force
@@ -182,6 +185,7 @@ async def test_trash_projects( # noqa: PLR0915
182185
"For https://github.com/ITISFoundation/osparc-simcore/pull/6642"
183186
)
184187
async def test_trash_single_folder(client: TestClient, logged_user: UserInfoDict):
188+
185189
assert client.app
186190

187191
# CREATE a folder
@@ -263,7 +267,7 @@ async def test_trash_folder_with_content(
263267
logged_user: UserInfoDict,
264268
user_project: ProjectDict,
265269
mocked_catalog: None,
266-
mocked_director_v2: None,
270+
mocked_director_v2_api: dict[str, MagicMock],
267271
):
268272
assert client.app
269273
project_uuid = UUID(user_project["uuid"])

0 commit comments

Comments
 (0)