1
0

Added tests for team <-> list relations

This commit is contained in:
konrad
2018-08-29 14:33:04 +02:00
committed by kolaente
parent 98e3d3e884
commit bdff353e78
3 changed files with 9 additions and 10 deletions

View File

@ -1,9 +1,9 @@
package models
import (
"testing"
"github.com/stretchr/testify/assert"
"reflect"
"testing"
)
func TestTeamList(t *testing.T) {
@ -11,7 +11,7 @@ func TestTeamList(t *testing.T) {
tl := TeamList{
TeamID: 1,
ListID: 1,
Right: TeamRightAdmin,
Right: TeamRightAdmin,
}
// Dummyuser

View File

@ -1,17 +1,17 @@
package models
import (
"testing"
"github.com/stretchr/testify/assert"
"reflect"
"testing"
)
func TestTeamNamespace(t *testing.T) {
// Dummy team <-> namespace relation
tn := TeamNamespace{
TeamID: 1,
TeamID: 1,
NamespaceID: 1,
Right: TeamRightAdmin,
Right: TeamRightAdmin,
}
dummyuser, _, err := GetUserByID(1)
@ -81,4 +81,4 @@ func TestTeamNamespace(t *testing.T) {
assert.Error(t, err)
assert.True(t, IsErrNamespaceDoesNotExist(err))
}
}