summaryrefslogtreecommitdiffstats
path: root/modules/contexttest
Commit message (Collapse)AuthorAgeFilesLines
* Avoid double-unescaping of form value (#26853)wxiaoguang2023-09-011-1/+0
| | | | | | | 1. The old `prepareQueryArg` did double-unescaping of form value. 2. By the way, remove the unnecessary `ctx.Flash = ...` in `MockContext`. Co-authored-by: Giteabot <teabot@gitea.io>
* Move web/api context related testing function into a separate package (#26859)wxiaoguang2023-09-011-0/+159
Just like `models/unittest`, the testing helper functions should be in a separate package: `contexttest` And complete the TODO: > // TODO: move this function to other packages, because it depends on "models" package