
- Massive replacement of changing `code.gitea.io/gitea` to `forgejo.org`. - Resolves forgejo/discussions#258 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7337 Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org> Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Reviewed-by: Beowulf <beowulf@beocode.eu> Reviewed-by: Panagiotis "Ivory" Vasilopoulos <git@n0toose.net> Co-authored-by: Gusted <postmaster@gusted.xyz> Co-committed-by: Gusted <postmaster@gusted.xyz>
34 lines
823 B
Go
34 lines
823 B
Go
// Copyright 2020 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package models
|
|
|
|
import (
|
|
"testing"
|
|
|
|
activities_model "forgejo.org/models/activities"
|
|
"forgejo.org/models/organization"
|
|
repo_model "forgejo.org/models/repo"
|
|
"forgejo.org/models/unittest"
|
|
user_model "forgejo.org/models/user"
|
|
|
|
_ "forgejo.org/models/actions"
|
|
_ "forgejo.org/models/forgefed"
|
|
_ "forgejo.org/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)
|
|
}
|