Skip to content

Commit 91a5cfb

Browse files
committed
renamed
1 parent 782ecce commit 91a5cfb

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

services/storage/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
from models_library.utils.fastapi_encoders import jsonable_encoder
4242
from pydantic import ByteSize, TypeAdapter
4343
from pytest_mock import MockerFixture
44-
from pytest_simcore.helpers.fastapi import assert_status
45-
from pytest_simcore.helpers.httpx_assert_checks import url_from_operation_id
44+
from pytest_simcore.helpers.fastapi import url_from_operation_id
45+
from pytest_simcore.helpers.httpx_assert_checks import assert_status
4646
from pytest_simcore.helpers.logging_tools import log_context
4747
from pytest_simcore.helpers.monkeypatch_envs import delenvs_from_dict, setenvs_from_dict
4848
from pytest_simcore.helpers.s3 import upload_file_to_presigned_link

services/storage/tests/unit/test_handlers_datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from models_library.users import UserID
1919
from pydantic import ByteSize, TypeAdapter
2020
from pytest_mock import MockerFixture
21-
from pytest_simcore.helpers.httpx_assert_checks import url_from_operation_id
21+
from pytest_simcore.helpers.fastapi import url_from_operation_id
2222
from pytest_simcore.helpers.parametrizations import (
2323
byte_size_ids,
2424
parametrized_file_size,

services/storage/tests/unit/test_handlers_health.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
from models_library.api_schemas_storage import HealthCheck, S3BucketName
1111
from models_library.app_diagnostics import AppStatusCheck
1212
from 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
1515
from servicelib.aiohttp import status
1616
from 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

3535
async 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"]

services/storage/tests/unit/test_handlers_locations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import httpx
99
from fastapi import FastAPI, status
1010
from models_library.users import UserID
11-
from pytest_simcore.helpers.httpx_assert_checks import url_from_operation_id
11+
from pytest_simcore.helpers.fastapi import url_from_operation_id
1212
from tests.helpers.utils import has_datcore_tokens
1313

1414
pytest_simcore_core_services_selection = ["postgres"]

0 commit comments

Comments
 (0)