forked from forgejo/forgejo
* Decouple TestAction_GetRepoLink and TestSizedAvatarLink. * Load database for TestCheckGPGUserEmail. * Load database for TestMakeIDsFromAPIAssigneesToAdd. * Load database for TestGetUserIDsByNames and TestGetMaileableUsersByIDs. * Load database for TestUser_ToUser. * Load database for TestRepository_EditWikiPage. * Include AppSubURL in test. * Prevent panic with empty slice. Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
parent
96b1315e6e
commit
3d7d750a99
6 changed files with 33 additions and 7 deletions
|
@ -61,6 +61,11 @@ func TestUpdateAssignee(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestMakeIDsFromAPIAssigneesToAdd(t *testing.T) {
|
||||
assert.NoError(t, PrepareTestDatabase())
|
||||
|
||||
_ = AssertExistsAndLoadBean(t, &User{ID: 1}).(*User)
|
||||
_ = AssertExistsAndLoadBean(t, &User{ID: 2}).(*User)
|
||||
|
||||
IDs, err := MakeIDsFromAPIAssigneesToAdd("", []string{""})
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, []int64{}, IDs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue