1010from models_library .api_schemas_storage import HealthCheck , S3BucketName
1111from models_library .app_diagnostics import AppStatusCheck
1212from moto .server import ThreadedMotoServer
13- from pytest_simcore .helpers .fastapi import assert_status
14- from pytest_simcore .helpers .httpx_assert_checks import url_from_operation_id
13+ from pytest_simcore .helpers .fastapi import url_from_operation_id
14+ from pytest_simcore .helpers .httpx_assert_checks import assert_status
1515from servicelib .aiohttp import status
1616from types_aiobotocore_s3 import S3Client
1717
@@ -28,8 +28,8 @@ async def test_health_check(initialized_app: FastAPI, client: httpx.AsyncClient)
2828
2929 assert app_health .name == simcore_service_storage ._meta .PROJECT_NAME # noqa: SLF001
3030 assert app_health .version == str (
31- simcore_service_storage ._meta .VERSION
32- ) # noqa: SLF001
31+ simcore_service_storage ._meta .VERSION # noqa: SLF001
32+ )
3333
3434
3535async def test_health_status (initialized_app : FastAPI , client : httpx .AsyncClient ):
@@ -42,11 +42,12 @@ async def test_health_status(initialized_app: FastAPI, client: httpx.AsyncClient
4242 assert not error
4343
4444 assert (
45- app_status_check .app_name == simcore_service_storage ._meta .PROJECT_NAME
46- ) # noqa: SLF001
45+ app_status_check .app_name
46+ == simcore_service_storage ._meta .PROJECT_NAME # noqa: SLF001
47+ )
4748 assert app_status_check .version == str (
48- simcore_service_storage ._meta .VERSION
49- ) # noqa: SLF001
49+ simcore_service_storage ._meta .VERSION # noqa: SLF001
50+ )
5051 assert len (app_status_check .services ) == 2
5152 assert "postgres" in app_status_check .services
5253 assert "healthy" in app_status_check .services ["postgres" ]
0 commit comments