forked from forgejo/forgejo
Fix "access" fixtures and tests (#10247)
* Add fixture gen tool and fix "access" test * Close file before exiting * Add missing repo_unit for repo id: 5 * Fix count on TestAPIOrgRepos Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
a97fe76950
commit
62a1322cf9
6 changed files with 193 additions and 45 deletions
|
@ -231,7 +231,7 @@ func TestAPIOrgRepos(t *testing.T) {
|
|||
includesPrivate bool
|
||||
}{
|
||||
nil: {count: 1},
|
||||
user: {count: 2, includesPrivate: true},
|
||||
user: {count: 3, includesPrivate: true},
|
||||
user2: {count: 3, includesPrivate: true},
|
||||
user3: {count: 1},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue