Added todo for tests
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2019-10-10 21:56:43 +02:00
parent 9a9483f973
commit 9710396ae7
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 23 additions and 0 deletions

View File

@ -60,3 +60,26 @@ func TestTaskAttachment_ReadOne(t *testing.T) {
assert.EqualError(t, err, "file 9999 does not exist")
})
}
func TestTaskAttachment_NewAttachment(t *testing.T) {
// Assert the file is being stored correctly
// Maybe needs adoption to pass an os.File or whatever comes from multipart.File.Open instead
// of passing multipart.File directly
// Also assert created_by_id is correct in the files table
// Extra test for max size test
}
func TestTaskAttachment_ReadAll(t *testing.T) {
// Assert all files are loaded correctly with their actual files
}
func TestTaskAttachment_Delete(t *testing.T) {
t.Run("Normal", func(t *testing.T) {
// TODO: also check the actual file is being deleted
})
t.Run("Nonexisting", func(t *testing.T) {
})
}