From 631ba4ee0509112d0ae7e5869a5cf82852c5f135 Mon Sep 17 00:00:00 2001 From: Adriano Date: Sun, 11 Oct 2026 17:49:46 +0000 Subject: [PATCH] Stazioni: placeholder senza URL letterale (test_offline), test form indipendente dalla lingua (#45) Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01NABedeMX43pyXZbDNUgA5B --- src/frontend/flask_app/templates/admin/stations.html | 4 ++-- src/frontend/flask_app/tests/test_admin_stations.py | 3 ++- .../flask_app/translations/en/LC_MESSAGES/messages.po | 4 ++-- .../flask_app/translations/it/LC_MESSAGES/messages.po | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/frontend/flask_app/templates/admin/stations.html b/src/frontend/flask_app/templates/admin/stations.html index b4994ec..be9e765 100644 --- a/src/frontend/flask_app/templates/admin/stations.html +++ b/src/frontend/flask_app/templates/admin/stations.html @@ -210,9 +210,9 @@ -

{{ _('Vuoto = worker centrale') }}

+

{{ _('Vuoto = worker centrale. Indirizzo completo, con http o https') }}

diff --git a/src/frontend/flask_app/tests/test_admin_stations.py b/src/frontend/flask_app/tests/test_admin_stations.py index e5383b9..022f1fd 100644 --- a/src/frontend/flask_app/tests/test_admin_stations.py +++ b/src/frontend/flask_app/tests/test_admin_stations.py @@ -185,7 +185,8 @@ def test_station_form_has_the_vision_worker_field(logged_in_client, mock_admin_a resp = logged_in_client.get("/admin/stations") assert resp.status_code == 200 assert b"form.vision_worker_url" in resp.data - assert "Worker visione (URL)".encode() in resp.data + # etichetta in italiano o in inglese, secondo il catalogo compilato + assert b"Worker visione (URL)" in resp.data or b"Vision worker (URL)" in resp.data def test_station_list_exposes_the_vision_worker_url(logged_in_client, mock_admin_api): diff --git a/src/frontend/flask_app/translations/en/LC_MESSAGES/messages.po b/src/frontend/flask_app/translations/en/LC_MESSAGES/messages.po index cd26e9b..7ff1c0d 100644 --- a/src/frontend/flask_app/translations/en/LC_MESSAGES/messages.po +++ b/src/frontend/flask_app/translations/en/LC_MESSAGES/messages.po @@ -759,8 +759,8 @@ msgid "Worker visione (URL)" msgstr "Vision worker (URL)" #: templates/admin/stations.html -msgid "Vuoto = worker centrale" -msgstr "Empty = central worker" +msgid "Vuoto = worker centrale. Indirizzo completo, con http o https" +msgstr "Empty = central worker. Full address, with http or https" #: templates/admin/stations.html:194 msgid "Nome descrittivo della stazione" diff --git a/src/frontend/flask_app/translations/it/LC_MESSAGES/messages.po b/src/frontend/flask_app/translations/it/LC_MESSAGES/messages.po index 6252a06..c5e2c45 100644 --- a/src/frontend/flask_app/translations/it/LC_MESSAGES/messages.po +++ b/src/frontend/flask_app/translations/it/LC_MESSAGES/messages.po @@ -761,8 +761,8 @@ msgid "Worker visione (URL)" msgstr "Worker visione (URL)" #: templates/admin/stations.html -msgid "Vuoto = worker centrale" -msgstr "Vuoto = worker centrale" +msgid "Vuoto = worker centrale. Indirizzo completo, con http o https" +msgstr "Vuoto = worker centrale. Indirizzo completo, con http o https" #: templates/admin/stations.html:194 msgid "Nome descrittivo della stazione"