photoprism/internal/photoprism/faces_test.go
2021-09-01 15:06:54 +02:00

36 lines
453 B
Go

package photoprism
import (
"testing"
"github.com/photoprism/photoprism/internal/config"
)
func TestFaces_Start(t *testing.T) {
c := config.TestConfig()
m := NewFaces(c)
opt := FacesOptions{
Force: true,
Threshold: 1,
}
err := m.Start(opt)
if err != nil {
t.Fatal(err)
}
}
func TestFaces_StartDefault(t *testing.T) {
c := config.TestConfig()
m := NewFaces(c)
err := m.StartDefault()
if err != nil {
t.Fatal(err)
}
}