mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Slowly getting to the point where only very few people are able to maintain this codebase :) Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
@@ -15,12 +15,10 @@ import (
|
||||
|
||||
// NewApiTest returns new API test helper
|
||||
func NewApiTest() (app *gin.Engine, router *gin.RouterGroup, conf *config.Config) {
|
||||
conf = config.TestConfig()
|
||||
service.SetConfig(conf)
|
||||
gin.SetMode(gin.TestMode)
|
||||
app = gin.New()
|
||||
router = app.Group("/api/v1")
|
||||
return app, router, conf
|
||||
return app, router, service.Config()
|
||||
}
|
||||
|
||||
// Performs API request with empty request body.
|
||||
@@ -46,6 +44,7 @@ func TestMain(m *testing.M) {
|
||||
log.SetLevel(logrus.DebugLevel)
|
||||
|
||||
c := config.TestConfig()
|
||||
service.SetConfig(c)
|
||||
|
||||
code := m.Run()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user