photoprism/internal/entity/photos_test.go
Michael Mayer b423b1980b API: Add /batch/photos endpoint to get metadata of selected photos #271
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-05-03 12:43:01 +02:00

21 lines
332 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))
})
}