test_housekeeping: the fake forge answers no reactions with null, as Gitea does

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017K4vyY3yUD3GsvoZaAtKkD
This commit is contained in:
teahubxyzandClaude Opus 5.5 committed 2026-10-19 13:43:56 +00:00
1 parent 8645bdfb4d
commit 10baddcaeb
1 file changed
+3 -2
+3 -2
View File
@@ -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":