Lunny Xiao
f491fe30b2
make writing main test easier ( #27270 )
...
This PR removed `unittest.MainTest` the second parameter
`TestOptions.GiteaRoot`. Now it detects the root directory by current
working directory.
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2023-09-28 01:38:53 +00:00
Lunny Xiao
f2c51e40f5
move repository deletion to service layer ( #26948 )
...
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com >
2023-09-08 04:51:15 +00:00
flynnnnnnnnnn
487cb6a411
Implement FSFE REUSE for golang files ( #21840 )
...
Change all license headers to comply with REUSE specification.
Fix #16132
Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com >
2022-11-27 18:20:29 +00:00
Lunny Xiao
6b6e9e3a68
Use a struct as test options ( #19393 )
...
* Use a struct as test options
* Fix name
* Fix test
2022-04-14 21:58:21 +08:00
wxiaoguang
748182b9c8
Decouple unit test code from business code ( #17623 )
2021-11-12 22:36:47 +08:00
Lunny Xiao
1d5c75c6be
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
Lunny Xiao
d5db853286
Move some pull request functions from models to services ( #9266 )
...
* Move some pull request functions from models to services
* Fix test
2019-12-06 21:44:10 -05:00