Integrazione Tràfilo: 6 test rossi nella suite (PIN 429, cornice, worker PDF) #65

Closed
opened 2026-10-07 11:37:10 +00:00 by Adriano · 1 comment
Owner

Ramo lavoro/daitarn-trafilo 6a8ad4d, suite su goldrake 07/10: 6 failed, 831 passed.
VERIFICATO: pytest --tb=short su goldrake.

  1. src/backend/tests/test_pin.py:61,74,85 — 429 invece di 423/200/401: /api/auth/login-pin è nel bucket login del RateLimitMiddleware (src/backend/api/middleware/rate_limit.py:39,102), i test fanno 6 tentativi di fila e superano il limite. Il limite è giusto in produzione; i test devono alzarlo o svuotare il bucket.
  2. src/frontend/flask_app/tests/test_layout_shell.py:44 — admin/_users_panel.html e admin/_users_script.html sono parziali inclusi (non viste) e non hanno tmf-page.
  3. test_layout_shell.py:53 — templates/admin/settings.html:28 max-w-4xl mx-auto sulla scheda generale.
  4. src/frontend/flask_app/tests/test_offline.py:133 — templates/measure/task_execute.html:1130 ora imposta il worker PDF (locale, corretto): i template sono 5, il test ne aspetta 4.
Ramo lavoro/daitarn-trafilo 6a8ad4d, suite su goldrake 07/10: 6 failed, 831 passed. VERIFICATO: pytest --tb=short su goldrake. 1. src/backend/tests/test_pin.py:61,74,85 — 429 invece di 423/200/401: /api/auth/login-pin è nel bucket login del RateLimitMiddleware (src/backend/api/middleware/rate_limit.py:39,102), i test fanno 6 tentativi di fila e superano il limite. Il limite è giusto in produzione; i test devono alzarlo o svuotare il bucket. 2. src/frontend/flask_app/tests/test_layout_shell.py:44 — admin/_users_panel.html e admin/_users_script.html sono parziali inclusi (non viste) e non hanno tmf-page. 3. test_layout_shell.py:53 — templates/admin/settings.html:28 `max-w-4xl mx-auto` sulla scheda generale. 4. src/frontend/flask_app/tests/test_offline.py:133 — templates/measure/task_execute.html:1130 ora imposta il worker PDF (locale, corretto): i template sono 5, il test ne aspetta 4.
Adriano added the bug label 2026-10-07 11:37:10 +00:00
Author
Owner

Soluzione

ESITO: fatto
COSA: sei test rossi della suite su lavoro/daitarn-trafilo riallineati all'integrazione Tràfilo.
FILE: src/backend/tests/test_pin.py — fixture autouse porta settings.rate_limit_login a 1000 (il limite di login scattava fra un test e l'altro)
FILE: src/frontend/tests/test_layout_shell.py — _views() salta i file _* (parziali, non viste)
FILE: src/frontend/templates/settings.html:28 — tolta class max-w-4xl mx-auto dalla scheda generale (cornice a tutta larghezza)
FILE: src/frontend/tests/test_offline.py — atteso 5 librerie, non 4
COMMIT: b7cb061
PROVA: goldrake ~/lavoro/suite-tmf.sh lavoro/daitarn-trafilo → pytest 3.11 backend+frontend 835 passed 2 skipped; pytest 3.13 vision 29 passed; docker build vision ok
MERGE: fast-forward di V3.0.0 a b7cb061

**Soluzione** ESITO: fatto COSA: sei test rossi della suite su lavoro/daitarn-trafilo riallineati all'integrazione Tràfilo. FILE: src/backend/tests/test_pin.py — fixture autouse porta settings.rate_limit_login a 1000 (il limite di login scattava fra un test e l'altro) FILE: src/frontend/tests/test_layout_shell.py — _views() salta i file _* (parziali, non viste) FILE: src/frontend/templates/settings.html:28 — tolta class max-w-4xl mx-auto dalla scheda generale (cornice a tutta larghezza) FILE: src/frontend/tests/test_offline.py — atteso 5 librerie, non 4 COMMIT: b7cb061 PROVA: goldrake ~/lavoro/suite-tmf.sh lavoro/daitarn-trafilo → pytest 3.11 backend+frontend 835 passed 2 skipped; pytest 3.13 vision 29 passed; docker build vision ok MERGE: fast-forward di V3.0.0 a b7cb061
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Adriano/TieMeasureFlow#65