diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2020-02-15 01:29:06 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-15 12:29:06 +0800 |
commit | 62a1322cf9940daa987ca16053f5081d7da54298 (patch) | |
tree | 760d0c18dd81dbe5b089941bc5e827ccd93491df /models/fixtures/collaboration.yml | |
parent | a97fe76950bf69ca71c9b790e8d0e76d5e870235 (diff) | |
download | gitea-62a1322cf9940daa987ca16053f5081d7da54298.tar.gz gitea-62a1322cf9940daa987ca16053f5081d7da54298.zip |
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>
Diffstat (limited to 'models/fixtures/collaboration.yml')
-rw-r--r-- | models/fixtures/collaboration.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/models/fixtures/collaboration.yml b/models/fixtures/collaboration.yml index 82d46f38f0..ef77d22b24 100644 --- a/models/fixtures/collaboration.yml +++ b/models/fixtures/collaboration.yml @@ -21,3 +21,27 @@ repo_id: 4 user_id: 29 mode: 2 # write + +- + id: 5 + repo_id: 21 + user_id: 15 + mode: 2 # write + +- + id: 6 + repo_id: 21 + user_id: 18 + mode: 2 # write + +- + id: 7 + repo_id: 22 + user_id: 15 + mode: 2 # write + +- + id: 8 + repo_id: 22 + user_id: 18 + mode: 2 # write |