From d0545aeaeeb71200516bc782cd4a361bc37ef916 Mon Sep 17 00:00:00 2001 From: anor Date: Mon, 20 Jul 2026 22:41:56 +1000 Subject: [PATCH] =?UTF-8?q?test:=20.png=20=D1=80=D0=B0=D0=B7=D1=80=D0=B5?= =?UTF-8?q?=D1=88=D1=91=D0=BD=20(=D0=B7=D1=80=D0=B5=D0=BD=D0=B8=D0=B5/?= =?UTF-8?q?=D1=81=D0=BA=D0=B0=D0=BD=D1=8B)=20=E2=80=94=20=D1=83=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D1=80=D0=B5=D0=B2=D1=88=D0=B8=D0=B9=20=D0=B0=D1=81?= =?UTF-8?q?=D1=81=D0=B5=D1=80=D1=82=20test=5Fsplit=5Farchive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit is_allowed_file принимает .png/.jpg (ALLOWED_EXTENSIONS: фото/сканы читает агентный путь). Тест ждал отклонения .png (написан до добавления зрения) → падал на сервере. Контракт верен, обновлён ассерт. Находка Потока A (полный прогон на сервере: 414 passed). Co-Authored-By: Claude Opus 4.8 (1M context) --- tests/test_split_archive.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_split_archive.py b/tests/test_split_archive.py index 78d077a..d8e21db 100644 --- a/tests/test_split_archive.py +++ b/tests/test_split_archive.py @@ -36,7 +36,9 @@ def test_allowlist_accepts_volumes(): assert is_allowed_file("смета.xlsx") # мусор — по-прежнему нет assert not is_allowed_file("virus.exe") - assert not is_allowed_file("photo.png") + # .png/.jpg — РАЗРЕШЕНЫ (фото/сканы читает зрение агентного пути, ALLOWED_EXTENSIONS); + # ассерт «not .png» устарел до добавления зрения — контракт: изображения принимаются. + assert is_allowed_file("photo.png") def test_is_split_volume():