File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1414from models_library .basic_types import BootModeEnum
1515from models_library .services import RunID
1616from moto .server import ThreadedMotoServer
17- from pydantic import HttpUrl , parse_obj_as
17+ from pydantic import HttpUrl , TypeAdapter
1818from settings_library .r_clone import S3Provider
1919from simcore_service_agent .core .settings import ApplicationSettings
2020
@@ -189,7 +189,6 @@ def caplog_info_debug(
189189@pytest .fixture (scope = "module" )
190190def mocked_s3_server_url (mocked_aws_server : ThreadedMotoServer ) -> HttpUrl :
191191 # pylint: disable=protected-access
192- return parse_obj_as (
193- HttpUrl ,
192+ return TypeAdapter (HttpUrl ).validate_python (
194193 f"http://{ mocked_aws_server ._ip_address } :{ mocked_aws_server ._port } " , # noqa: SLF001
195194 )
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ async def test_store_to_s3(
149149 )
150150
151151 await _download_files_from_bucket (
152- endpoint = mocked_s3_server_url ,
152+ endpoint = str ( mocked_s3_server_url ) ,
153153 access_key = "xxx" ,
154154 secret_key = "xxx" ,
155155 bucket_name = bucket ,
You can’t perform that action at this time.
0 commit comments