forked from NYANDEV/forgejo
parent
7b18c67ac9
commit
46637b1164
6 changed files with 20 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue