photoprism/internal/query/query_test.go
Michael Mayer b4a04a478f Backend: Set test database using PHOTOPRISM_TEST_DSN
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-04-30 22:39:38 +02:00

21 lines
284 B
Go

package query
import (
"os"
"testing"
"github.com/sirupsen/logrus"
)
func TestMain(m *testing.M) {
log = logrus.StandardLogger()
log.SetLevel(logrus.DebugLevel)
// db := entity.InitTestDb(os.Getenv("PHOTOPRISM_TEST_DSN"))
code := m.Run()
// db.Close()
os.Exit(code)
}