release: Themiz — публичный срез 26.11.2026

This commit is contained in:
public-repo-gate
2026-11-26 04:34:08 -05:00
parent 86ea1998fe
commit 979528e135
30 changed files with 53514 additions and 48997 deletions
+18
View File
@@ -864,3 +864,21 @@ def test_no_reread_when_pages_covered_or_file_empty(dochitka, fake, run_, tmp_pa
fake.plan({"docx-reader": [first], "pdf-reader": [read(("Справка", "значение", 0))], "case-mapper": [QUESTION]})
faza_karta.karta(run_, ctx)
assert sum(call["role"] == "docx-reader" for call in fake.calls()) == 1
def test_reader_item_bez_klyuchey_propuskaetsya(run_, tmp_path, monkeypatch):
"""07.11.2026: kimi прислал факт без «znachenie» (у него схему не держит API) —
KeyError уронил прогон 20261107-180826. Битый элемент пропускается, карта растет без него."""
map_path = tmp_path / "map.md"
files = [{"name": "a.jpg", "role": "image-reader", "pages": 1, "scan": True,
"text": "текст", "path": tmp_path / "a.txt", "note": ""}]
monkeypatch.setattr(core, "agent", lambda *a, **k: {"fakty": [
{"tema": "Годная тема", "znachenie": "значение", "str": 1},
{"tema": "Без значения"},
"не объект",
{"tema": " ", "znachenie": "пустая тема", "str": 1},
{"tema": "Без страницы", "znachenie": "значение"},
]})
fakty = faza_karta._chitat(run_, map_path, files)
assert [f["tema"] for f in fakty] == ["Годная тема", "Без страницы"]
assert fakty[1]["status"] == "ссылка не проверена" # страницы нет — честный статус, не выдумка