fix(gui): connecter la GUI V6 au portail prod (P0-2, plus localhost)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-25 17:40:33 +02:00
parent 55e8839613
commit f3e6cdb980
2 changed files with 25 additions and 2 deletions

View File

@@ -0,0 +1,14 @@
import pytest
def test_default_portal_url_is_prod(monkeypatch):
monkeypatch.delenv("ANON_PORTAL_URL", raising=False)
from gui_v6.app import DEFAULT_PORTAL_URL, resolve_portal_url
assert DEFAULT_PORTAL_URL == "https://app.aivanov.eu"
assert resolve_portal_url() == "https://app.aivanov.eu"
def test_portal_url_env_override(monkeypatch):
monkeypatch.setenv("ANON_PORTAL_URL", "http://localhost:8088")
from gui_v6.app import resolve_portal_url
assert resolve_portal_url() == "http://localhost:8088"