0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-12-08 15:45:27 +01:00

Update test fixtures and related files for Actions API

This commit is contained in:
Ross Golder 2025-10-23 21:46:24 +07:00
parent 2b0cd60356
commit 944b6761c3
No known key found for this signature in database
GPG Key ID: 253A7E508D2D59CD
3 changed files with 21 additions and 2 deletions

View File

@ -4,6 +4,18 @@
user_id: 2 user_id: 2
mode: 2 # write mode: 2 # write
-
id: 12
repo_id: 2
user_id: 4
mode: 1 # read
-
id: 13
repo_id: 4
user_id: 2
mode: 1 # read
- -
id: 2 id: 2
repo_id: 4 repo_id: 4

View File

@ -736,7 +736,14 @@
- -
id: 111 id: 111
repo_id: 3 repo_id: 2
type: 10
config: "{}"
created_unix: 946684810
-
id: 112
repo_id: 4
type: 10 type: 10
config: "{}" config: "{}"
created_unix: 946684810 created_unix: 946684810

View File

@ -65,7 +65,7 @@ func TestRepository_IsCollaborator(t *testing.T) {
} }
test(3, 2, true) test(3, 2, true)
test(3, unittest.NonexistentID, false) test(3, unittest.NonexistentID, false)
test(4, 2, false) test(4, 2, true)
test(4, 4, true) test(4, 4, true)
} }