actually fix tests through mocks.

Этот коммит содержится в:
Conor Macpherson
2023-04-13 09:34:48 -04:00
родитель 0b731f4330
Коммит 7cc866ed89
2 изменённых файлов: 27 добавлений и 9 удалений

Просмотреть файл

@@ -8803,3 +8803,17 @@ func (c *Client4) GetWorkTemplatesByCategory(category string) ([]*WorkTemplate,
err = json.NewDecoder(r.Body).Decode(&templates)
return templates, BuildResponse(r), err
}
func (c *Client4) SubmitTrueUpReview(req map[string]any) (*Response, error) {
reqBytes, err := json.Marshal(req)
if err != nil {
return nil, NewAppError("SubmitTrueUpReview", "api.marshal_error", nil, "", http.StatusInternalServerError).Wrap(err)
}
r, err := c.DoAPIPostBytes(c.licenseRoute()+"/review", reqBytes)
if err != nil {
return BuildResponse(r), nil
}
defer closeBody(r)
return BuildResponse(r), nil
}