From eb91104db820e4df6f84245949716dbc578f0833 Mon Sep 17 00:00:00 2001 From: Adam Moussa Date: Fri, 31 Jul 2026 12:52:25 -0400 Subject: [PATCH] test(reviewer): cover team-enabled fork authorization --- tests/webhooks/test_verdict_authorization.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/webhooks/test_verdict_authorization.py b/tests/webhooks/test_verdict_authorization.py index 314b9d76..cc8fe227 100644 --- a/tests/webhooks/test_verdict_authorization.py +++ b/tests/webhooks/test_verdict_authorization.py @@ -30,6 +30,7 @@ def _pr(*, author: str = "alice", fork: bool = False) -> dict[str, object]: (False, True, _pr(), False, False), (False, True, _pr(author="open-swe[bot]"), False, True), (True, False, _pr(), True, True), + (True, False, _pr(fork=True), True, False), ], ids=[ "repo-enabled-trusted-nonfork", @@ -38,6 +39,7 @@ def _pr(*, author: str = "alice", fork: bool = False) -> dict[str, object]: "untrusted", "internal-bot", "team-enabled", + "team-enabled-fork", ], ) @pytest.mark.asyncio