|
8 | 8 |
|
9 | 9 | import asyncio |
10 | 10 | from collections.abc import AsyncIterable, Callable |
| 11 | +from unittest.mock import MagicMock |
11 | 12 | from uuid import UUID |
12 | 13 |
|
13 | 14 | import arrow |
@@ -125,9 +126,11 @@ async def test_trash_projects( # noqa: PLR0915 |
125 | 126 | ) |
126 | 127 | _, error = await assert_status( |
127 | 128 | 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 | + ), |
131 | 134 | ) |
132 | 135 |
|
133 | 136 | could_not_trash = is_project_running and not force |
@@ -182,6 +185,7 @@ async def test_trash_projects( # noqa: PLR0915 |
182 | 185 | "For https://github.com/ITISFoundation/osparc-simcore/pull/6642" |
183 | 186 | ) |
184 | 187 | async def test_trash_single_folder(client: TestClient, logged_user: UserInfoDict): |
| 188 | + |
185 | 189 | assert client.app |
186 | 190 |
|
187 | 191 | # CREATE a folder |
@@ -263,7 +267,7 @@ async def test_trash_folder_with_content( |
263 | 267 | logged_user: UserInfoDict, |
264 | 268 | user_project: ProjectDict, |
265 | 269 | mocked_catalog: None, |
266 | | - mocked_director_v2: None, |
| 270 | + mocked_director_v2_api: dict[str, MagicMock], |
267 | 271 | ): |
268 | 272 | assert client.app |
269 | 273 | project_uuid = UUID(user_project["uuid"]) |
|
0 commit comments