refactor: comentarii strict functionale, fara referinte PRD/stories

Curatare globala a comentariilor si docstring-urilor (app, tools, teste,
scripturi): eliminate referintele la PRD-uri, US-xxx, task-uri istorice si
review-uri; pastrata doar informatia functionala, formulata scurt. Regula
adaugata in CLAUDE.md (sectiunea Stil). Fara modificari de cod sau comportament.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Claude Agent
2026-07-06 13:48:38 +00:00
parent 86408887e5
commit 44f261e269
226 changed files with 1313 additions and 1760 deletions

View File

@@ -1,7 +1,4 @@
"""Teste US-006 (PRD 5.4): Componenta UI de eroare pe 3 niveluri.
Pasul A (RED): teste scrise inainte de implementare.
"""
"""Componenta UI de eroare pe 3 niveluri."""
from __future__ import annotations
@@ -243,7 +240,7 @@ def test_preview_rand_per_camp_fix(client):
# ---------------------------------------------------------------------------
# Teste noi (BUG 1 + BUG 2) — adaugate TDD-style (RED inainte de fix)
# motiv_uman / parse_erori: cazuri speciale
# ---------------------------------------------------------------------------
from app.web.labels import motiv_uman # noqa: E402
@@ -251,7 +248,7 @@ from app.errors import eroare # noqa: E402
def test_motiv_uman_creds_3niveluri():
"""BUG 1: motiv_uman pe dict 3-niveluri (RAR_CREDS_INVALIDE) -> problema, NU text garbled."""
"""motiv_uman pe dict 3-niveluri (RAR_CREDS_INVALIDE) -> problema, NU text garbled."""
rar_err = json.dumps(eroare("RAR_CREDS_INVALIDE", cauza="credentiale RAR invalide"))
rezultat = motiv_uman("error", rar_err)
# Nu trebuie sa contina "field:" / "cod:" (text garbled)
@@ -277,7 +274,7 @@ def test_motiv_uman_unmapped_neschimbat():
def test_parse_erori_gol_returneaza_lista_goala():
"""BUG 2: parse_erori pe dict/lista goala -> [], nu 1 element cu problema=''."""
"""parse_erori pe dict/lista goala -> [], nu 1 element cu problema=''."""
r1 = parse_erori("{}")
assert r1 == [], f"parse_erori('{{}}') -> {r1!r}, asteptat []"