Skip to content

Commit a077042

Browse files
committed
fixed test
1 parent cafcf37 commit a077042

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

services/web/server/tests/unit/with_dbs/04/garbage_collector/test_resource_manager.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
from simcore_service_webserver.login.plugin import setup_login
4545
from simcore_service_webserver.notifications.plugin import setup_notifications
4646
from simcore_service_webserver.products.plugin import setup_products
47-
from simcore_service_webserver.projects.exceptions import ProjectNotFoundError
4847
from simcore_service_webserver.projects.plugin import setup_projects
4948
from simcore_service_webserver.projects.projects_service import (
5049
remove_project_dynamic_services,
@@ -106,7 +105,6 @@ def app_environment(
106105
monkeypatch: pytest.MonkeyPatch,
107106
app_environment: EnvVarsDict,
108107
) -> EnvVarsDict:
109-
110108
# NOTE: undos some app_environment settings
111109
monkeypatch.delenv("WEBSERVER_GARBAGE_COLLECTOR", raising=False)
112110
app_environment.pop("WEBSERVER_GARBAGE_COLLECTOR", None)
@@ -946,14 +944,13 @@ async def test_regression_removing_unexisting_user(
946944
app=client.app,
947945
simcore_user_agent=UNDEFINED_DEFAULT_SIMCORE_USER_AGENT_VALUE,
948946
)
949-
with pytest.raises(ProjectNotFoundError):
950-
await remove_project_dynamic_services(
951-
user_id=user_id,
952-
project_uuid=empty_user_project["uuid"],
953-
app=client.app,
954-
user_name={"first_name": "my name is", "last_name": "pytest"},
955-
simcore_user_agent=UNDEFINED_DEFAULT_SIMCORE_USER_AGENT_VALUE,
956-
)
947+
await remove_project_dynamic_services(
948+
user_id=user_id,
949+
project_uuid=empty_user_project["uuid"],
950+
app=client.app,
951+
user_name={"first_name": "my name is", "last_name": "pytest"},
952+
simcore_user_agent=UNDEFINED_DEFAULT_SIMCORE_USER_AGENT_VALUE,
953+
)
957954
# since the call to delete is happening as fire and forget task, let's wait until it is done
958955
async for attempt in AsyncRetrying(**_TENACITY_ASSERT_RETRY):
959956
with attempt:

0 commit comments

Comments
 (0)