File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
packages/models-library/src/models_library Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 22from typing import Any , Protocol , runtime_checkable
33
44from pydantic import AnyHttpUrl , TypeAdapter
5- from pydantic import TypeAdapter
65from typing_extensions import ( # https://docs.pydantic.dev/latest/api/standard_library_types/#typeddict
76 TypedDict ,
87)
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 } " ,
You can’t perform that action at this time.
0 commit comments