Skip to content

Commit e057758

Browse files
committed
fixes tests
1 parent 46f43b8 commit e057758

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

packages/service-library/src/servicelib/project_lock.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import datetime
22
import logging
3-
from ast import TypeAlias
43
from asyncio.log import logger
54
from collections.abc import AsyncIterator
65
from contextlib import asynccontextmanager
7-
from typing import Final
6+
from typing import Final, TypeAlias
87

98
import redis
109
import redis.exceptions

services/web/server/src/simcore_service_webserver/projects/_trash_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121

2222
async def empty_trash(app: web.Application, product_name: ProductName, user_id: UserID):
23+
assert app # nosec
2324
# filter trashed=True and set them to False
2425
_logger.debug(
2526
"CODE PLACEHOLDER: all projects marked as trashed of %s in %s are deleted",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ async def test_trash_projects(
4646
):
4747
assert client.app
4848

49+
# this test should have no errors stopping services
4950
mocker.patch(
5051
"simcore_service_webserver.projects._trash_api.projects_api.remove_project_dynamic_services",
5152
autospec=True,

0 commit comments

Comments
 (0)