aboutsummaryrefslogtreecommitdiffstats
path: root/services/org/user_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Enable testifylint rules (#34075)TheFox0x74 days1-1/+1
| | | | enable testifylint rules disabled in: https://github.com/go-gitea/gitea/pull/34054
* Refactor tests (#33021)wxiaoguang2024-12-291-1/+1
| | | | | | | | | | | | | | | | 1. fix incorrect tests, for example: BeanExists doesn't do assert and shouldn't be used 2. remove unnecessary test functions 3. introduce DumpQueryResult to help to see the database rows during test (at least I need it) ``` ====== DumpQueryResult: SELECT * FROM action_runner_token ====== - # row[0] id: 1 token: xeiWBL5kuTYxGPynHCqQdoeYmJAeG3IzGXCYTrDX owner_id: 0 ... ```
* Move team related functions to service layer (#32537)Lunny Xiao2024-11-271-0/+74
There are still some functions under `models` after last big refactor about `models`. This change will move all team related functions to service layer with no code change.