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:
@@ -1,5 +1,5 @@
|
||||
"""Teste PRD 5.5 — uniformizare UI: US-001 (Acasa fara Ajutor), US-002 (Nomenclator grila
|
||||
standard), US-003 (macro autosend) — actualizat dupa PRD 5.11 US-002 (macro neutralizat).
|
||||
"""Teste uniformizare UI: Acasa fara sectiunea Ajutor, Nomenclator ca grila
|
||||
standard, macro autosend_toggle neutralizat.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -21,7 +21,7 @@ def _env():
|
||||
|
||||
|
||||
# ============================================================
|
||||
# US-002: Nomenclator ca tabel standard (grila Trimiteri)
|
||||
# Nomenclator ca tabel standard (grila Trimiteri)
|
||||
# ============================================================
|
||||
|
||||
def test_nomenclator_grila_standard_cu_randuri():
|
||||
@@ -43,7 +43,7 @@ def test_nomenclator_empty_state():
|
||||
|
||||
|
||||
# ============================================================
|
||||
# US-003: macro autosend_toggle compact (Auto/Manual)
|
||||
# macro autosend_toggle compact (Auto/Manual)
|
||||
# ============================================================
|
||||
|
||||
def _render_macro(form_id="map-1", checked=True):
|
||||
@@ -52,21 +52,21 @@ def _render_macro(form_id="map-1", checked=True):
|
||||
|
||||
|
||||
def test_autosend_pastreaza_name_si_prezenta():
|
||||
"""US-002 (PRD 5.11): macro autosend_toggle neutralizat — output gol, fara checkbox."""
|
||||
"""Macro autosend_toggle neutralizat — output gol, fara checkbox."""
|
||||
html = _render_macro(checked=True)
|
||||
assert 'name="auto_send"' not in html, "US-002: checkbox auto_send scos din macro"
|
||||
assert 'name="auto_send"' not in html, "checkbox auto_send scos din macro"
|
||||
assert html.strip() == "", f"macro neutralizat trebuie sa intoarca string gol, got: {html!r}"
|
||||
|
||||
|
||||
def test_autosend_nebifat_fara_checked():
|
||||
"""US-002: macro neutralizat intoarce gol indiferent de checked."""
|
||||
"""Macro neutralizat intoarce gol indiferent de checked."""
|
||||
html = _render_macro(checked=False)
|
||||
assert 'name="auto_send"' not in html
|
||||
assert html.strip() == ""
|
||||
|
||||
|
||||
def test_autosend_compact_fara_proza_inline():
|
||||
"""US-002: macro neutralizat nu contine nicio proza inline."""
|
||||
"""Macro neutralizat nu contine nicio proza inline."""
|
||||
html = _render_macro()
|
||||
assert "La fisierele viitoare" not in html
|
||||
assert "Tine pentru verificare" not in html
|
||||
@@ -75,7 +75,7 @@ def test_autosend_compact_fara_proza_inline():
|
||||
|
||||
|
||||
# ============================================================
|
||||
# US-001: Acasa fara sectiunea Ajutor
|
||||
# Acasa fara sectiunea Ajutor
|
||||
# ============================================================
|
||||
|
||||
@pytest.fixture()
|
||||
@@ -121,7 +121,7 @@ def test_acasa_fara_sectiune_ajutor(client):
|
||||
|
||||
|
||||
# ============================================================
|
||||
# US-005: Tabel Mapari standardizat + panou Ajutor
|
||||
# Tabel Mapari standardizat + panou Ajutor
|
||||
# ============================================================
|
||||
|
||||
def _seed_needs_mapping(acct_id, cod_op="OP-NM", denumire="Operatie test"):
|
||||
@@ -146,18 +146,18 @@ def test_mapari_ajutor_disclosure_si_fara_proza_inline(client):
|
||||
resp = client.get("/_fragments/mapari")
|
||||
assert resp.status_code == 200
|
||||
html = resp.text
|
||||
# US-010: sectiunea de ajutor (<details class="ajutor-mapari">) eliminata
|
||||
# Sectiunea de ajutor (<details class="ajutor-mapari">) eliminata
|
||||
assert "ajutor-mapari" not in html
|
||||
# US-002: coloana In coada scoasa din tabel
|
||||
assert "In coada" not in html, "US-002: coloana 'In coada' scoasa din tabelul Mapari"
|
||||
# Coloana In coada scoasa din tabel
|
||||
assert "In coada" not in html, "Coloana 'In coada' scoasa din tabelul Mapari"
|
||||
# proza inline veche eliminata de pe sectiuni
|
||||
assert "sugestia fuzzy e preselectata) si salveaza" not in html
|
||||
assert "Maparile operatie -> cod RAR retinute pentru contul tau" not in html
|
||||
|
||||
|
||||
def test_mapari_comutator_compact_in_tabel(client):
|
||||
"""US-002: tabul Mapari nu mai contine checkbox auto_send."""
|
||||
"""Tabul Mapari nu mai contine checkbox auto_send."""
|
||||
acct = _login(client)
|
||||
_seed_needs_mapping(acct)
|
||||
html = client.get("/_fragments/mapari").text
|
||||
assert 'name="auto_send"' not in html, "US-002: checkbox auto_send scos din UI"
|
||||
assert 'name="auto_send"' not in html, "checkbox auto_send scos din UI"
|
||||
|
||||
Reference in New Issue
Block a user