e3bb8b19dd
Also improves migrations and updates the db schema docs. Signed-off-by: Michael Mayer <michael@photoprism.app>
18 lines
232 B
Go
18 lines
232 B
Go
package get
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/photoprism/photoprism/internal/config"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
c := config.NewTestConfig("service")
|
|
SetConfig(c)
|
|
defer c.CloseDb()
|
|
|
|
code := m.Run()
|
|
|
|
os.Exit(code)
|
|
}
|