mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 06:53: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(), False, False),
|
||||||
(False, True, _pr(author="open-swe[bot]"), False, True),
|
(False, True, _pr(author="open-swe[bot]"), False, True),
|
||||||
(True, False, _pr(), True, True),
|
(True, False, _pr(), True, True),
|
||||||
|
(True, False, _pr(fork=True), True, False),
|
||||||
],
|
],
|
||||||
ids=[
|
ids=[
|
||||||
"repo-enabled-trusted-nonfork",
|
"repo-enabled-trusted-nonfork",
|
||||||
|
|
@ -38,6 +39,7 @@ def _pr(*, author: str = "alice", fork: bool = False) -> dict[str, object]:
|
||||||
"untrusted",
|
"untrusted",
|
||||||
"internal-bot",
|
"internal-bot",
|
||||||
"team-enabled",
|
"team-enabled",
|
||||||
|
"team-enabled-fork",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue