()
| 307 | } |
| 308 | |
| 309 | func (s *ApplicationSuite) Test_DeleteApplication() { |
| 310 | s.db.User(5).App(1) |
| 311 | |
| 312 | test.WithUser(s.ctx, 5) |
| 313 | s.ctx.Request = httptest.NewRequest("DELETE", "/token/"+firstApplicationToken, nil) |
| 314 | s.ctx.Params = gin.Params{{Key: "id", Value: "1"}} |
| 315 | |
| 316 | s.a.DeleteApplication(s.ctx) |
| 317 | |
| 318 | assert.Equal(s.T(), 200, s.recorder.Code) |
| 319 | s.db.AssertAppNotExist(1) |
| 320 | } |
| 321 | |
| 322 | func (s *ApplicationSuite) Test_UploadAppImage_NoImageProvided_expectBadRequest() { |
| 323 | s.db.User(5).App(1) |
nothing calls this directly
no test coverage detected