Files
photoprism/internal/entity/photos_test.go
2024-05-10 18:18:25 +02:00

22 lines
330 B
Go

package entity
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestPhotos_Photos(t *testing.T) {
t.Run("Ok", func(t *testing.T) {
photo1 := PhotoFixtures.Get("Photo08")
photo2 := PhotoFixtures.Get("Photo07")
photos := Photos{photo1, photo2}
r := photos.Photos()
assert.Equal(t, 2, len(r))
})
}