release: Евномия, новая версия, линейка юристов

This commit is contained in:
public-repo-gate
2026-10-19 17:43:00 +03:00
parent 067c6c2414
commit bf1edc117c
239 changed files with 245397 additions and 36598 deletions
+51
View File
@@ -0,0 +1,51 @@
"""Классы reviewer-facts-miss-source-pages (L-20261014-f3fe) и quality-gate-tool-numbers-orphan (L-20261014-6f66):
вывод приборов прогона - шапка shapka.py (карточка и DaData) и госпошлина gosposhlina.py - входит в факты Кони
и в источники чисел quality_gate. Данные синтетические."""
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
import core # noqa: E402
import faza_dokument # noqa: E402
from next_helpers import make_case # noqa: E402
FORM = {"title": "Административное исковое заявление об оспаривании решения налогового органа", "proceeding": "КАС"}
SHAPKA = "В Тестовый районный суд\n420111, г. Тест, ул. Судебная, д. 7"
DRAFT = (f"{SHAPKA}\n\nАдминистративный истец:\nТестов Т.Т.\nадрес: 420222, г. Тест, ул. Первая, д. 1\n\n"
"# АДМИНИСТРАТИВНОЕ ИСКОВОЕ ЗАЯВЛЕНИЕ\n\nТекст. Госпошлина 3 000 руб. уплачена.\n")
def _ctx(case):
draft = case / ".agent" / "drafts" / "isk.md"
draft.parent.mkdir(parents=True, exist_ok=True)
draft.write_text(DRAFT, encoding="utf-8")
return {"form": FORM, "fakty": [], "texts": {}, "draft": draft}
def test_pribory_v_faktah_koni(tmp_path):
case = make_case(tmp_path / "cases" / "c" / "d")
with core.Run(case, "FAST", "административное исковое заявление") as run:
ctx = _ctx(case)
text = faza_dokument.fakty_text(run, ctx)
assert "3 000" in text and "gosposhlina" in text
assert "420111" in text and "420222" in text and "shapka" in text
assert "уплачена" not in text # из черновика в факты идет только шапка прибора, не текст составителя
def test_pribory_v_istochnikah_chisel(tmp_path):
case = make_case(tmp_path / "cases" / "c" / "d")
with core.Run(case, "FAST", "административное исковое заявление") as run:
ctx = _ctx(case)
sources = faza_dokument._against(run, ctx)
pribory = run.dir / "pribory.md"
assert str(pribory) in sources
body = pribory.read_text(encoding="utf-8")
assert "3 000" in body and "420111" in body
def test_imushchestvennyj_isk_bez_neimushch_poshliny(tmp_path):
case = make_case(tmp_path / "cases" / "c" / "d")
with core.Run(case, "FAST", "исковое заявление") as run:
ctx = {**_ctx(case), "form": {"title": "Исковое заявление о взыскании долга"}}
assert "неимущественн" not in faza_dokument.pribory_text(run, ctx)