Added tests for team <-> list relations
This commit is contained in:
parent
98e3d3e884
commit
bdff353e78
|
@ -133,12 +133,11 @@ Teams sind global, d.h. Ein Team kann mehrere Namespaces verwalten.
|
|||
#### v0.2
|
||||
|
||||
* [x] Listen teilbar
|
||||
|
||||
* [ ] Mit anderen Nutzern
|
||||
* [x] Teams
|
||||
* [ ] Mit Link
|
||||
* [ ] Offen
|
||||
* [ ] Passwortgeschützt
|
||||
* [ ] Offen
|
||||
* [ ] Passwortgeschützt
|
||||
* [x] Rechtemanagement (Und damit Unterscheidung zwischen Ownern und Mitgleidern)
|
||||
* [x] Mange Team members
|
||||
* [x] Hinzufügen
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue