mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 05:43:14 +00:00
test(reviewer): cover team-enabled fork authorization
This commit is contained in:
parent
1b8f8d480d
commit
eb91104db8
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue