diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2022-10-17 18:23:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 00:23:27 +0800 |
commit | a577214760c8f495f315fc569f476d2e72f22ebb (patch) | |
tree | 9553f3cb31e8b260ff6781821cfdce3ea192407f /models/user | |
parent | 18622a07054e853731e1af96253d1387451b51e2 (diff) | |
download | gitea-a577214760c8f495f315fc569f476d2e72f22ebb.tar.gz gitea-a577214760c8f495f315fc569f476d2e72f22ebb.zip |
Add some api integration tests (#18872)
depends on #18871
Added some api integration tests to help testing of #18798.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'models/user')
-rw-r--r-- | models/user/user_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user/user_test.go b/models/user/user_test.go index 678d6c186c..5f2ac0a60c 100644 --- a/models/user/user_test.go +++ b/models/user/user_test.go @@ -102,7 +102,7 @@ func TestSearchUsers(t *testing.T) { []int64{9}) testUserSuccess(&user_model.SearchUserOptions{OrderBy: "id ASC", ListOptions: db.ListOptions{Page: 1}, IsActive: util.OptionalBoolTrue}, - []int64{1, 2, 4, 5, 8, 10, 11, 12, 13, 14, 15, 16, 18, 20, 21, 24, 28, 29, 30, 32}) + []int64{1, 2, 4, 5, 8, 10, 11, 12, 13, 14, 15, 16, 18, 20, 21, 24, 27, 28, 29, 30, 32}) testUserSuccess(&user_model.SearchUserOptions{Keyword: "user1", OrderBy: "id ASC", ListOptions: db.ListOptions{Page: 1}, IsActive: util.OptionalBoolTrue}, []int64{1, 10, 11, 12, 13, 14, 15, 16, 18}) |