|
|
@ -7,8 +7,16 @@ import (
|
|
|
|
"testing"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
|
|
"code.gitea.io/gitea/modules/setting"
|
|
|
|
"code.gitea.io/gitea/modules/setting"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TestFixturesAreConsistent assert that test fixtures are consistent
|
|
|
|
|
|
|
|
func TestFixturesAreConsistent(t *testing.T) {
|
|
|
|
|
|
|
|
assert.NoError(t, PrepareTestDatabase())
|
|
|
|
|
|
|
|
CheckConsistencyForAll(t)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func TestMain(m *testing.M) {
|
|
|
|
func TestMain(m *testing.M) {
|
|
|
|
if err := CreateTestEngine(); err != nil {
|
|
|
|
if err := CreateTestEngine(); err != nil {
|
|
|
|
fmt.Printf("Error creating test engine: %v\n", err)
|
|
|
|
fmt.Printf("Error creating test engine: %v\n", err)
|
|
|
|