mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-20 01:36:37 +00:00
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/10662 - create the modules/testimport/import.go to centralize blank import needed for tests (in order to run the init() function) to simplify maintenance - remove the imports that are not needed Co-authored-by: limiting-factor <limiting-factor@posteo.com> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10672 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org> Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
27 lines
551 B
Go
27 lines
551 B
Go
// Copyright 2020 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package issues_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
issues_model "forgejo.org/models/issues"
|
|
"forgejo.org/models/unittest"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestFixturesAreConsistent(t *testing.T) {
|
|
require.NoError(t, unittest.PrepareTestDatabase())
|
|
unittest.CheckConsistencyFor(t,
|
|
&issues_model.Issue{},
|
|
&issues_model.PullRequest{},
|
|
&issues_model.Milestone{},
|
|
&issues_model.Label{},
|
|
)
|
|
}
|
|
|
|
func TestMain(m *testing.M) {
|
|
unittest.MainTest(m)
|
|
}
|