mirror of
https://gitee.com/gitea/gitea
synced 2025-11-20 00:10:28 +08:00
@@ -39,6 +39,7 @@ func MockContext(t *testing.T, path string) *context.Context {
|
||||
Resp: context.NewResponse(resp),
|
||||
Locale: &mockLocale{},
|
||||
}
|
||||
defer ctx.Close()
|
||||
|
||||
requestURL, err := url.Parse(path)
|
||||
assert.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user