test: seed review workflow load and pass expected_head_sha in legacy test fixtures

This commit is contained in:
2026-07-08 11:14:06 -04:00
parent 3d540f6fba
commit cefebd7643
4 changed files with 19 additions and 1 deletions
+2 -1
View File
@@ -1057,7 +1057,8 @@ class TestMergePR(unittest.TestCase):
"GITEA_ALLOWED_OPERATIONS": "read,merge"}
with patch.dict(os.environ, env, clear=True):
r = gitea_merge_pr(
pr_number=8, confirmation=self._confirm(8), remote="prgs")
pr_number=8, confirmation=self._confirm(8), remote="prgs",
expected_head_sha=new_sha)
self.assertFalse(r["performed"])
self.assertTrue(r.get("approval_visible"))
self.assertFalse(r.get("approval_at_current_head"))