Update deps

This commit is contained in:
Jannis Mattheis
2023-07-30 15:39:15 +02:00
parent 72bd8c8ba6
commit bda27946da
3 changed files with 75 additions and 53 deletions

View File

@@ -467,22 +467,6 @@ func (s *ApplicationSuite) Test_RemoveAppImage_expectSuccess() {
assert.Equal(s.T(), 200, s.recorder.Code)
}
func (s *ApplicationSuite) Test_UploadAppImage_WithSaveError_expectServerError() {
s.db.User(5).App(1)
cType, buffer, err := upload(map[string]*os.File{"file": mustOpen("../test/assets/image.png")})
assert.Nil(s.T(), err)
s.ctx.Request = httptest.NewRequest("POST", "/irrelevant/", &buffer)
s.a.ImageDir = "asdasd/asdasda/asdasd"
s.ctx.Request.Header.Set("Content-Type", cType)
test.WithUser(s.ctx, 5)
s.ctx.Params = gin.Params{{Key: "id", Value: "1"}}
s.a.UploadApplicationImage(s.ctx)
assert.Equal(s.T(), 500, s.recorder.Code)
}
func (s *ApplicationSuite) Test_UpdateApplicationNameAndDescription_expectSuccess() {
s.db.User(5).NewAppWithToken(2, "app-2")