mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +01:00
4de909747b
go-require lint is ignored for now Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4535 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: TheFox0x7 <thefox0x7@gmail.com> Co-committed-by: TheFox0x7 <thefox0x7@gmail.com>
33 lines
846 B
Go
33 lines
846 B
Go
// Copyright 2020 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package models
|
|
|
|
import (
|
|
"testing"
|
|
|
|
activities_model "code.gitea.io/gitea/models/activities"
|
|
"code.gitea.io/gitea/models/organization"
|
|
repo_model "code.gitea.io/gitea/models/repo"
|
|
"code.gitea.io/gitea/models/unittest"
|
|
user_model "code.gitea.io/gitea/models/user"
|
|
|
|
_ "code.gitea.io/gitea/models/actions"
|
|
_ "code.gitea.io/gitea/models/system"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
// TestFixturesAreConsistent assert that test fixtures are consistent
|
|
func TestFixturesAreConsistent(t *testing.T) {
|
|
require.NoError(t, unittest.PrepareTestDatabase())
|
|
unittest.CheckConsistencyFor(t,
|
|
&user_model.User{},
|
|
&repo_model.Repository{},
|
|
&organization.Team{},
|
|
&activities_model.Action{})
|
|
}
|
|
|
|
func TestMain(m *testing.M) {
|
|
unittest.MainTest(m)
|
|
}
|