Интеграция: у НПЗ нет ложного «2400 = 2300 − 2410 + 2420» (#87)

С 0.1.4 соотношения 2400 — группа альтернатив (AURORA-1864): тест сквозного разбора
форм проверял, что расхождение есть, теперь — что его нет (как в golden НПЗ, fixtures #36).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andrey Epifancev 2026-11-12 14:18:05 +04:00
parent 387e92e014
commit d722e0b76c

View File

@ -362,10 +362,10 @@ async def test_real_statements_through_worker_give_done_with_two_documents(
"1500 = 1510 + 1520 + 1530 + 1540 + 1550",
"1410 = 14101 + 14102 + 14103 + 14104 + 14105",
}
assert {item["relation"] for item in income["checks"]["soft_relations_failed"]} >= {
"2400 = 2300 - 2410 + 2420",
"2410 = 2411 + 2412",
}
income_soft = {item["relation"] for item in income["checks"]["soft_relations_failed"]}
assert "2410 = 2411 + 2412" in income_soft
# 2400 — группа альтернатив (0.1.4, AURORA-1864): одна из них в НПЗ сходится, ложного расхождения нет
assert "2400 = 2300 - 2410 + 2420" not in income_soft
# лист с единственной строкой 2400 присоединён (O-9)
assert "2400" in {line["line_code"] for line in income["lines"]}
await core.assert_quiet(request)