Answer architecture round 1: 1 🔴, 2 🟡 (0 misread); read the branch's round titles and default branch one way for rule-hook and round-count

This commit is contained in:
2026-10-28 17:47:41 +01:00
parent 0254e427f2
commit fe975488ec
9 changed files with 75 additions and 42 deletions
+5
View File
@@ -87,6 +87,11 @@ class StalledOrigin(unittest.TestCase):
self.assertIsInstance(ref, Failure)
self.assertIn("stopped after 0.5 s", ref.reason)
def test_reading_the_default_branch_guarded_asks_no_one_and_fails(self):
ref = git_repo.default_ref(self.root, 0.5, guarded=True)
self.assertIsInstance(ref, Failure)
self.assertIn("origin records no default branch", ref.reason)
def test_fetching_the_default_branch_fails_after_the_timeout(self):
with contextlib.chdir(self.root):
found = git_repo.default_branch(stale_ok=True, timeout=0.5)