Answer stability round 1: 0 🔴, 1 🟡 (0 misread); read pages until an empty or repeated one, and reword the paging prose
This commit is contained in:
@@ -938,6 +938,8 @@ class Clean(unittest.TestCase):
|
||||
return f"12\t{self.merged_at}\tfalse\n" if self.merged_at else ""
|
||||
if command == ["tea", "api", "repos/{owner}/{repo}/pulls?state=closed&limit=50"] and self.url == GITEA:
|
||||
return json.dumps([{"number": 12, "merged": self.merged_at is not None, "head": {"ref": "refs/pull/12/head" if self.merged_at else "item-7", "label": "item-7", "sha": self.merged_at or self.head, "repo": {"full_name": "me/project"}}, "base": {"repo": {"full_name": "me/project"}}}])
|
||||
if command == ["tea", "api", "repos/{owner}/{repo}/pulls?state=closed&limit=50&page=2"] and self.url == GITEA:
|
||||
return "[]"
|
||||
if command[0] != "git":
|
||||
return Failure(f"the fake forge doesn't answer {command}")
|
||||
done = subprocess.run(command, cwd=folder, capture_output=True, encoding="utf-8", env=isolated_env())
|
||||
|
||||
Reference in New Issue
Block a user