gitea/modules/activitypub
Lunny Xiao 673cf6af76
make writing main test easier ()
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>
..
client.go More refactoring of `db.DefaultContext` ()
client_test.go More refactoring of `db.DefaultContext` ()
main_test.go make writing main test easier ()
user_settings.go More refactoring of `db.DefaultContext` ()
user_settings_test.go More refactoring of `db.DefaultContext` ()