mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-21 19:39:54 +02:00
fix more failing tests
This commit is contained in:
parent
a4d1cc2179
commit
3a79b777ce
@ -142,3 +142,9 @@
|
|||||||
group_id: 376
|
group_id: 376
|
||||||
access_mode: 1
|
access_mode: 1
|
||||||
can_create_in: false
|
can_create_in: false
|
||||||
|
- id: 25
|
||||||
|
org_id: 3
|
||||||
|
team_id: 12
|
||||||
|
group_id: 123
|
||||||
|
access_mode: 4
|
||||||
|
can_create_in: true
|
||||||
|
|||||||
@ -36,7 +36,7 @@ func TestNewGroup(t *testing.T) {
|
|||||||
func TestMoveGroup(t *testing.T) {
|
func TestMoveGroup(t *testing.T) {
|
||||||
assert.NoError(t, unittest.PrepareTestDatabase())
|
assert.NoError(t, unittest.PrepareTestDatabase())
|
||||||
doer := unittest.AssertExistsAndLoadBean(t, &user_model.User{
|
doer := unittest.AssertExistsAndLoadBean(t, &user_model.User{
|
||||||
ID: 3,
|
ID: 28,
|
||||||
})
|
})
|
||||||
testfn := func(gid int64) {
|
testfn := func(gid int64) {
|
||||||
cond := &group_model.FindGroupsOptions{
|
cond := &group_model.FindGroupsOptions{
|
||||||
@ -61,7 +61,7 @@ func TestMoveGroup(t *testing.T) {
|
|||||||
func TestMoveRepo(t *testing.T) {
|
func TestMoveRepo(t *testing.T) {
|
||||||
assert.NoError(t, unittest.PrepareTestDatabase())
|
assert.NoError(t, unittest.PrepareTestDatabase())
|
||||||
doer := unittest.AssertExistsAndLoadBean(t, &user_model.User{
|
doer := unittest.AssertExistsAndLoadBean(t, &user_model.User{
|
||||||
ID: 3,
|
ID: 28,
|
||||||
})
|
})
|
||||||
cond := repo_model.SearchRepositoryCondition(repo_model.SearchRepoOptions{
|
cond := repo_model.SearchRepositoryCondition(repo_model.SearchRepoOptions{
|
||||||
GroupID: 123,
|
GroupID: 123,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user