From 94de9c68c80d33e5fed4b925ba4f647b02ae8872 Mon Sep 17 00:00:00 2001 From: Shroominic Date: Sat, 9 Aug 2025 12:43:31 -0300 Subject: [PATCH] fix docker/local testmode --- tests/integration/test_general_info_endpoints.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_general_info_endpoints.py b/tests/integration/test_general_info_endpoints.py index c1c8c20..f9d52c2 100644 --- a/tests/integration/test_general_info_endpoints.py +++ b/tests/integration/test_general_info_endpoints.py @@ -96,6 +96,7 @@ async def test_root_endpoint_structure_and_performance( @pytest.mark.asyncio async def test_root_endpoint_environment_variables( integration_client: AsyncClient, + test_mode: str, ) -> None: """Test that root endpoint reflects environment variable configuration""" @@ -105,8 +106,11 @@ async def test_root_endpoint_environment_variables( data = response.json() # Check that environment variables are reflected in response - # These are set in conftest.py for test environment - assert "http://localhost:3338" in data["mints"] + # In mock mode, URLs are adjusted to localhost + if test_mode == "docker": + assert "http://mint:3338" in data["mints"] + else: + assert "http://localhost:3338" in data["mints"] # Name should have a default value or be configurable assert len(data["name"]) > 0