Skip to content

Commit 5594adf

Browse files
committed
tests pass
1 parent 64b3648 commit 5594adf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from pytest_simcore.helpers.monkeypatch_envs import setenvs_from_dict
2525
from pytest_simcore.helpers.typing_env import EnvVarsDict
2626
from pytest_simcore.helpers.webserver_login import NewUser, UserInfoDict
27+
from pytest_simcore.helpers.webserver_parametrizations import MockedStorageSubsystem
2728
from servicelib.aiohttp import status
2829
from simcore_service_webserver.db.models import UserRole
2930
from simcore_service_webserver.projects._groups_api import ProjectGroupGet
@@ -799,6 +800,7 @@ async def test_trash_project_explitictly_and_empty_trash_bin(
799800
mocked_catalog: None,
800801
mocked_director_v2: None,
801802
mocked_dynamic_services_interface: dict[str, MagicMock],
803+
storage_subsystem_mock: MockedStorageSubsystem,
802804
):
803805
assert client.app
804806

@@ -829,8 +831,11 @@ async def test_trash_project_explitictly_and_empty_trash_bin(
829831

830832
# force EMPTY trash
831833
resp = await client.delete("/v0/trash")
834+
# TODO: POST trash:empty -> logs number of elements and
835+
# starts delete in the background ? Assume many many items and can take really long
832836
await assert_status(resp, status.HTTP_204_NO_CONTENT)
833837

838+
# waits for deletion
834839
async for attempt in AsyncRetrying(
835840
stop=stop_after_attempt(3), wait=wait_fixed(1), reraise=True
836841
):

0 commit comments

Comments
 (0)