forked from forgejo/forgejo
Merge pull request #777 from ethantkoenig/tests/wiki
Unit tests for models/wiki
This commit is contained in:
commit
31c717f579
3 changed files with 68 additions and 1 deletions
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue