File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/pytest-simcore/src/pytest_simcore Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 44
55import pytest
66from faker import Faker
7+ from pydantic import AnyHttpUrl , TypeAdapter
78from pytest_simcore .helpers .docker import get_service_published_port
89from pytest_simcore .helpers .host import get_localhost_ip
910from pytest_simcore .helpers .monkeypatch_envs import setenvs_from_dict
@@ -20,7 +21,9 @@ def minio_s3_settings(
2021 return S3Settings (
2122 S3_ACCESS_KEY = testing_environ_vars ["S3_ACCESS_KEY" ],
2223 S3_SECRET_KEY = testing_environ_vars ["S3_SECRET_KEY" ],
23- S3_ENDPOINT = f"http://{ get_localhost_ip ()} :{ get_service_published_port ('minio' )} " ,
24+ S3_ENDPOINT = TypeAdapter (AnyHttpUrl ).validate_python (
25+ f"http://{ get_localhost_ip ()} :{ get_service_published_port ('minio' )} "
26+ ),
2427 S3_BUCKET_NAME = testing_environ_vars ["S3_BUCKET_NAME" ],
2528 S3_REGION = "us-east-1" ,
2629 )
You can’t perform that action at this time.
0 commit comments