Lunny Xiao
719bddcd76
Move repository model into models/repo ( #17933 )
...
* Some refactors related repository model
* Move more methods out of repository
* Move repository into models/repo
* Fix test
* Fix test
* some improvements
* Remove unnecessary function
2021-12-10 09:27:50 +08:00
Lunny Xiao
a666829a37
Move user related model into models/user ( #17781 )
...
* Move user related model into models/user
* Fix lint for windows
* Fix windows lint
* Fix windows lint
* Move some tests in models
* Merge
2021-11-24 17:49:20 +08:00
wxiaoguang
81926d61db
Decouple unit test, remove intermediate unittestbridge
package ( #17662 )
...
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-11-16 16:53:21 +08:00
wxiaoguang
df64fa4865
Decouple unit test code from business code ( #17623 )
2021-11-12 22:36:47 +08:00
Lunny Xiao
a4bfef265d
Move db related basic functions to models/db ( #17075 )
...
* Move db related basic functions to models/db
* Fix lint
* Fix lint
* Fix test
* Fix lint
* Fix lint
* revert unnecessary change
* Fix test
* Fix wrong replace string
* Use *Context
* Correct committer spelling and fix wrong replaced words
Co-authored-by: zeripath <art27@cantab.net>
2021-09-19 19:49:59 +08:00
John Olheiser
baadb51445
Add gitea-vet ( #10948 )
...
* Add copyright
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Add gitea-vet and fix non-compliance
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Combine tools.go into build.go and clean up
Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Remove extra GO111MODULE=on
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2020-04-05 07:20:50 +01:00
Ethan Koenig
91f3d77ceb
Unit tests for wiki routers ( #3022 )
2017-11-30 17:52:15 +02:00
Ethan Koenig
7e0654bd9e
Fix counts on issues dashboard ( #2215 )
...
* Fix counts on issues dashboard
* setupSess -> setupSession
* Unit test
* Load repo owners for issues
2017-08-03 13:09:16 +08:00
Lauris BH
1d032f5220
Fix compiling without sqlite and gcc ( #2177 )
2017-07-26 15:27:30 +08:00
Ethan Koenig
9f9289fc68
Run unused test
2017-06-04 14:28:17 -04:00
Ethan Koenig
cf02cd7ba0
Fix and test for delete user ( #1713 )
...
* Fix and test for delete user
* Run updates in batches
* Unit test
2017-05-20 16:48:22 +08:00