Backend: Update TestPhoto_Save test
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
27ea0cb214
commit
a785a9d708
1 changed files with 2 additions and 6 deletions
|
@ -70,8 +70,6 @@ func TestSavePhotoForm(t *testing.T) {
|
|||
}
|
||||
|
||||
func TestPhoto_Save(t *testing.T) {
|
||||
/* Creating new photos with Save() not supported (yet)
|
||||
|
||||
t.Run("new photo", func(t *testing.T) {
|
||||
photo := Photo{
|
||||
ID: 11111,
|
||||
|
@ -103,11 +101,9 @@ func TestPhoto_Save(t *testing.T) {
|
|||
}
|
||||
|
||||
err := photo.Save()
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
assert.EqualError(t, err, "photo: can't save to database, id is empty")
|
||||
})
|
||||
*/
|
||||
|
||||
t.Run("existing photo", func(t *testing.T) {
|
||||
m := PhotoFixtures.Get("19800101_000002_D640C559")
|
||||
|
|
Loading…
Reference in a new issue