We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9e8f8e commit b9357a2Copy full SHA for b9357a2
services/contexttest/context_tests.go
@@ -87,7 +87,7 @@ func MockAPIContext(t *testing.T, reqPath string) (*context.APIContext, *httptes
87
base := context.NewBaseContext(resp, req)
88
base.Data = middleware.GetContextData(req.Context())
89
base.Locale = &translation.MockLocale{}
90
- ctx := &context.APIContext{Base: base}
+ ctx := &context.APIContext{Base: base, Repo: &context.Repository{}}
91
chiCtx := chi.NewRouteContext()
92
ctx.SetContextValue(chi.RouteCtxKey, chiCtx)
93
return ctx, resp
0 commit comments