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,15 +1,11 @@
|
||||
"""
|
||||
Teste pentru eticheta randurilor tinute manual (held) — US-006, PRD 5.19.
|
||||
Teste pentru eticheta randurilor tinute manual (held).
|
||||
|
||||
RED intai: scrise inainte de a extinde labels.py cu parametrul `held`.
|
||||
|
||||
Regula de afisaj (D5, PRD 5.19):
|
||||
Regula de afisaj:
|
||||
- `status='queued' AND held=1` -> "In asteptare (manual)" + clasa CSS de
|
||||
AVERTIZARE (amber, `--warn`) — asteptare benigna, NU eroare (rosu).
|
||||
- `held=0` (sau lipsa) -> comportament neschimbat pentru TOATE starile.
|
||||
- `held` NU e stare noua in masina de stari: CHECK-ul din schema ramane neatins.
|
||||
|
||||
Fisiere atinse: app/web/labels.py, tests/test_labels_held.py.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
@@ -44,7 +40,7 @@ def test_queued_held_are_eticheta_manuala_si_clasa_warn():
|
||||
|
||||
|
||||
def test_queued_held_false_ramane_neschimbat():
|
||||
"""queued fara held == comportamentul dinainte de US-006 (PRD 5.19)."""
|
||||
"""queued fara held == comportamentul dinainte de introducerea held."""
|
||||
fara_held = eticheta_stare("queued")
|
||||
held_false = eticheta_stare("queued", held=False)
|
||||
assert fara_held == held_false, "held=False trebuie identic cu apelul fara held"
|
||||
@@ -67,14 +63,14 @@ def test_apel_pozitional_compat():
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# eticheta_scurta (pill) — pill-ul trebuie sa distinga held de queued normal (D5)
|
||||
# eticheta_scurta (pill) — pill-ul trebuie sa distinga held de queued normal
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
def test_pill_queued_held_diferit_de_queued_normal():
|
||||
pill_held = eticheta_scurta("queued", held=True)
|
||||
pill_normal = eticheta_scurta("queued", held=False)
|
||||
assert pill_held != pill_normal, (
|
||||
"pill-ul trebuie sa distinga randul tinut (D5: altfel randa 'In coada' identic)"
|
||||
"pill-ul trebuie sa distinga randul tinut (altfel randa 'In coada' identic)"
|
||||
)
|
||||
assert pill_normal == "In coada"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user