mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-08-09 02:54:37 +00:00
fix docker/local testmode
This commit is contained in:
@@ -96,6 +96,7 @@ async def test_root_endpoint_structure_and_performance(
|
|||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
async def test_root_endpoint_environment_variables(
|
async def test_root_endpoint_environment_variables(
|
||||||
integration_client: AsyncClient,
|
integration_client: AsyncClient,
|
||||||
|
test_mode: str,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test that root endpoint reflects environment variable configuration"""
|
"""Test that root endpoint reflects environment variable configuration"""
|
||||||
|
|
||||||
@@ -105,8 +106,11 @@ async def test_root_endpoint_environment_variables(
|
|||||||
data = response.json()
|
data = response.json()
|
||||||
|
|
||||||
# Check that environment variables are reflected in response
|
# Check that environment variables are reflected in response
|
||||||
# These are set in conftest.py for test environment
|
# In mock mode, URLs are adjusted to localhost
|
||||||
assert "http://localhost:3338" in data["mints"]
|
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
|
# Name should have a default value or be configurable
|
||||||
assert len(data["name"]) > 0
|
assert len(data["name"]) > 0
|
||||||
|
|||||||
Reference in New Issue
Block a user