mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-03 18:02:28 +02:00
Unit tests and bug fix for models/org
This commit is contained in:
parent
bb5a6b7a07
commit
a2412492da
10 changed files with 671 additions and 26 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue