From 275e384172f6719605d06ccaf73cef01e7014b5d Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 9 Nov 2026 01:21:31 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=202=20=F0=9F=9F=A1=20(1=20misread);=20the=20hook-?= =?UTF-8?q?limit=20comment=20was=20fixed=20in=20the=20prose=20round,=20and?= =?UTF-8?q?=20a=20test=20now=20runs=20the=20own=20rank=5Ftodo.py=20past=20?= =?UTF-8?q?its=20time=20limit;=20the=20=F0=9F=94=80=20went=20to=20the=20se?= =?UTF-8?q?curity=20pass,=20which=20ruled=20it=20below=20its=20bar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/rule_hook/test_rule_hook.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/rule_hook/test_rule_hook.py b/bin/rule_hook/test_rule_hook.py index c04c46ee..ded9dc2e 100644 --- a/bin/rule_hook/test_rule_hook.py +++ b/bin/rule_hook/test_rule_hook.py @@ -8,6 +8,7 @@ import subprocess import sys import tempfile import unittest +import unittest.mock sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1])) @@ -890,6 +891,11 @@ class TodoRankCheck(unittest.TestCase): checkout = self.changed_plan(f"{self.folder}/clone", "import sys\nsys.exit(3)\n") self.assertEqual(self.details(checkout), [f"{checkout}/bin/rank_todo.py --check failed with exit 3 and printed nothing"]) + def test_its_own_rank_todo_running_past_the_limit_is_named(self): + checkout = self.changed_plan(f"{self.folder}/clone", "import signal\nsignal.pause()\n") + with unittest.mock.patch("rule_hook.todo_check.OWN_CHECK_SECONDS", 0.2): + self.assertEqual(self.details(checkout), [f"{checkout}/bin/rank_todo.py --check did not finish in 0.2 seconds"]) + def test_another_repos_rank_todo_never_runs(self): reasons = self.details(self.changed_plan(self.other, self.STUB)) self.assertTrue(reasons)