1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-03 00:45:22 +02:00

Unit tests and bug fix for models/org

This commit is contained in:
Ethan Koenig 2017-01-24 11:16:36 -05:00
parent bb5a6b7a07
commit a2412492da
10 changed files with 671 additions and 26 deletions

View file

@ -106,7 +106,7 @@ func TestRepository_RecalculateAccesses(t *testing.T) {
has, err := x.Get(access)
assert.NoError(t, err)
assert.True(t, has)
assert.Equal(t, AccessModeWrite, access.Mode)
assert.Equal(t, AccessModeOwner, access.Mode)
}
func TestRepository_RecalculateAccesses2(t *testing.T) {