1
0
Fork 0
forked from forgejo/forgejo

Merge pull request #777 from ethantkoenig/tests/wiki

Unit tests for models/wiki
This commit is contained in:
Andrey Nering 2017-01-28 11:27:45 -02:00 committed by GitHub
commit 31c717f579
3 changed files with 68 additions and 1 deletions

View file

@ -9,6 +9,8 @@ import (
"os"
"testing"
"code.gitea.io/gitea/modules/setting"
"github.com/go-xorm/core"
"github.com/go-xorm/xorm"
_ "github.com/mattn/go-sqlite3" // for the test engine
@ -23,6 +25,14 @@ func TestMain(m *testing.M) {
fmt.Printf("Error creating test engine: %v\n", err)
os.Exit(1)
}
setting.AppURL = "https://try.gitea.io/"
setting.RunUser = "runuser"
setting.SSH.Port = 3000
setting.SSH.Domain = "try.gitea.io"
setting.RepoRootPath = "/repos"
setting.AppDataPath = "/appdata"
os.Exit(m.Run())
}