Skip to content

Commit 66a492f

Browse files
♻️ Fix agent tests (#6772)
1 parent a0b8a2f commit 66a492f

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

packages/models-library/src/models_library/rest_pagination_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from typing import Any, Protocol, runtime_checkable
33

44
from pydantic import AnyHttpUrl, TypeAdapter
5-
from pydantic import TypeAdapter
65
from typing_extensions import ( # https://docs.pydantic.dev/latest/api/standard_library_types/#typeddict
76
TypedDict,
87
)

services/agent/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def mock_environment(
4848
"LOGLEVEL": "DEBUG",
4949
"SC_BOOT_MODE": BootModeEnum.DEBUG,
5050
"AGENT_VOLUMES_CLEANUP_TARGET_SWARM_STACK_NAME": swarm_stack_name,
51-
"AGENT_VOLUMES_CLEANUP_S3_ENDPOINT": mocked_s3_server_url,
51+
"AGENT_VOLUMES_CLEANUP_S3_ENDPOINT": f"{mocked_s3_server_url}",
5252
"AGENT_VOLUMES_CLEANUP_S3_ACCESS_KEY": "xxx",
5353
"AGENT_VOLUMES_CLEANUP_S3_SECRET_KEY": "xxx",
5454
"AGENT_VOLUMES_CLEANUP_S3_BUCKET": bucket,

services/agent/tests/unit/test_services_backup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async def test_backup_volume(
7777

7878
expected_files = _FILES_TO_CREATE_IN_VOLUME * len(VOLUMES_TO_CREATE)
7979

80-
async with session.client("s3", endpoint_url=settings.AGENT_VOLUMES_CLEANUP_S3_ENDPOINT) as s3_client: # type: ignore
80+
async with session.client("s3", endpoint_url=f"{settings.AGENT_VOLUMES_CLEANUP_S3_ENDPOINT}") as s3_client: # type: ignore
8181
list_response = await s3_client.list_objects_v2(
8282
Bucket=settings.AGENT_VOLUMES_CLEANUP_S3_BUCKET,
8383
Prefix=f"{swarm_stack_name}/{project_id}/{node_id}/{run_id}",

0 commit comments

Comments
 (0)