From 6446a8cdf5457fb4ead1987ff581c62432488216 Mon Sep 17 00:00:00 2001 From: bot-backend Date: Thu, 27 Aug 2026 13:16:26 +0300 Subject: [PATCH] =?UTF-8?q?fix(tests):=20ruff=20E741=20=E2=80=94=20=D0=BE?= =?UTF-8?q?=D0=B4=D0=BD=D0=BE=D0=B1=D1=83=D0=BA=D0=B2=D0=B5=D0=BD=D0=BD?= =?UTF-8?q?=D0=BE=D0=B5=20=D0=B8=D0=BC=D1=8F=20=D0=BF=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=BD=D0=BE=D0=B9=20=D0=B2=20=D1=80=D0=B0?= =?UTF-8?q?=D0=B7=D0=B1=D0=BE=D1=80=D0=B5=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF?= =?UTF-8?q?=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/tests/ops/test_2203_notify_topic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/tests/ops/test_2203_notify_topic.py b/backend/tests/ops/test_2203_notify_topic.py index df170aac..cad0f108 100644 --- a/backend/tests/ops/test_2203_notify_topic.py +++ b/backend/tests/ops/test_2203_notify_topic.py @@ -69,7 +69,7 @@ def _posix(path: Path) -> str: def _extract_notify(script: Path) -> str: """Вырезать тело notify() из настоящего файла — от заголовка до `}` в нулевой колонке.""" lines = script.read_text(encoding="utf-8").splitlines() - start = next((i for i, l in enumerate(lines) if l.startswith("notify()")), None) + start = next((i for i, ln in enumerate(lines) if ln.startswith("notify()")), None) assert start is not None, f"{script.name}: не нашёл notify() — отправитель переименован" end = next((i for i in range(start + 1, len(lines)) if lines[i] == "}"), None) assert end is not None, f"{script.name}: не нашёл конец notify()"