test(golden): 88 снимков парсера — Счастливочная 1 кв 2025 (arm-ka-fixtures#7)
Closes #22 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vJkmBGKKqMoEMzvsXG3y2
This commit is contained in:
parent
7665a8cf67
commit
78004a4e89
@ -37,7 +37,7 @@ from tests.factories import make_legal_entity, make_stored_file
|
||||
from tests.fixtures_helpers import golden_result
|
||||
|
||||
GOLDEN_DIR = Path("golden") / "expected_osv_parse"
|
||||
EXPECTED_SNAPSHOTS = 82 # результатов ОСВ в fixtures (rb, schastl, synthetic)
|
||||
EXPECTED_SNAPSHOTS = 88 # результатов ОСВ в fixtures (rb, schastl, synthetic): 72 реальных + 16 синтетических
|
||||
TIME_BUDGET_SECONDS = 60.0 # tasks 3.4: маппинг всех снимков — не дольше минуты
|
||||
SUM_FIELDS = ("opening_debit", "opening_credit", "turnover_debit", "turnover_credit", "closing_debit", "closing_credit")
|
||||
TOTAL = "TOTAL"
|
||||
@ -89,7 +89,7 @@ def _check_sheet( # noqa: PLR0912 - все инварианты одного л
|
||||
|
||||
|
||||
async def test_all_golden_snapshots_mapped(seeded: AsyncSession, fixtures_dir: Path) -> None: # noqa: PLR0914
|
||||
"""«Все golden-снимки парсера»: 82 результата маппятся в БД, инварианты спеки на каждом документе, ≤ 60 с."""
|
||||
"""«Все golden-снимки парсера»: 88 результатов маппятся в БД, инварианты спеки на каждом документе, ≤ 60 с."""
|
||||
session = seeded
|
||||
snapshots = _snapshots(fixtures_dir)
|
||||
assert len(snapshots) == EXPECTED_SNAPSHOTS
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user