summaryrefslogtreecommitdiffstats
path: root/models/org_test.go
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2018-01-07 23:48:37 -0800
committerLauris BH <lauris@nix.lv>2018-01-08 09:48:37 +0200
commitf48680888c14ad3dfe9cadb8efa4c8221731b71e (patch)
tree441f01ee6e43df6e28f86242dd983b2f52af8c8b /models/org_test.go
parentcb868b78513b666905c8cd4facca68ed54c7f814 (diff)
downloadgitea-f48680888c14ad3dfe9cadb8efa4c8221731b71e.tar.gz
gitea-f48680888c14ad3dfe9cadb8efa4c8221731b71e.zip
Remove IsOwner, NumTeams from OrgUser (#3269)
Diffstat (limited to 'models/org_test.go')
-rw-r--r--models/org_test.go16
1 files changed, 4 insertions, 12 deletions
diff --git a/models/org_test.go b/models/org_test.go
index aef313d05e..42ab4a2a45 100644
--- a/models/org_test.go
+++ b/models/org_test.go
@@ -368,16 +368,12 @@ func TestGetOrgUsersByUserID(t *testing.T) {
ID: orgUsers[0].ID,
OrgID: 6,
UID: 5,
- IsOwner: true,
- IsPublic: true,
- NumTeams: 1}, *orgUsers[0])
+ IsPublic: true}, *orgUsers[0])
assert.Equal(t, OrgUser{
ID: orgUsers[1].ID,
OrgID: 7,
UID: 5,
- IsOwner: true,
- IsPublic: false,
- NumTeams: 1}, *orgUsers[1])
+ IsPublic: false}, *orgUsers[1])
}
publicOrgUsers, err := GetOrgUsersByUserID(5, false)
@@ -400,16 +396,12 @@ func TestGetOrgUsersByOrgID(t *testing.T) {
ID: orgUsers[0].ID,
OrgID: 3,
UID: 2,
- IsOwner: true,
- IsPublic: true,
- NumTeams: 1}, *orgUsers[0])
+ IsPublic: true}, *orgUsers[0])
assert.Equal(t, OrgUser{
ID: orgUsers[1].ID,
OrgID: 3,
UID: 4,
- IsOwner: false,
- IsPublic: false,
- NumTeams: 0}, *orgUsers[1])
+ IsPublic: false}, *orgUsers[1])
}
orgUsers, err = GetOrgUsersByOrgID(NonexistentID)