From 10baddcaeb171ac1c64a9b4dbcdfae457fdceb4a Mon Sep 17 00:00:00 2001 From: teahubxyz Date: Mon, 19 Oct 2026 13:43:56 +0000 Subject: [PATCH] test_housekeeping: the fake forge answers no reactions with null, as Gitea does Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017K4vyY3yUD3GsvoZaAtKkD --- .github/time/test_housekeeping.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/time/test_housekeeping.py b/.github/time/test_housekeeping.py index d27930c..dac7cce 100644 --- a/.github/time/test_housekeeping.py +++ b/.github/time/test_housekeeping.py @@ -64,8 +64,9 @@ class Forge: if m["id"] == int(route.split("/")[-1]): m.update(body) return {} - if route.endswith("/reactions"): - return self.page(self.reactions.get(int(route.split("/")[-2]), []), path) + if route.endswith("/reactions"): # Gitea: null, not [], for an issue nobody reacted to + n = int(route.split("/")[-2]) + return self.page(self.reactions[n], path) if n in self.reactions else None if route.endswith("/comments") and method == "GET": return self.page(self.cmts.get(int(route.split("/")[-2]), []), path) if route.endswith("/comments") and method == "POST":