You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main_test.go 843B

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright 2020 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package issues_test
  4. import (
  5. "path/filepath"
  6. "testing"
  7. issues_model "code.gitea.io/gitea/models/issues"
  8. "code.gitea.io/gitea/models/unittest"
  9. _ "code.gitea.io/gitea/models"
  10. _ "code.gitea.io/gitea/models/actions"
  11. _ "code.gitea.io/gitea/models/activities"
  12. _ "code.gitea.io/gitea/models/repo"
  13. _ "code.gitea.io/gitea/models/user"
  14. "github.com/stretchr/testify/assert"
  15. )
  16. func TestFixturesAreConsistent(t *testing.T) {
  17. assert.NoError(t, unittest.PrepareTestDatabase())
  18. unittest.CheckConsistencyFor(t,
  19. &issues_model.Issue{},
  20. &issues_model.PullRequest{},
  21. &issues_model.Milestone{},
  22. &issues_model.Label{},
  23. )
  24. }
  25. func TestMain(m *testing.M) {
  26. unittest.MainTest(m, &unittest.TestOptions{
  27. GiteaRootPath: filepath.Join("..", ".."),
  28. })
  29. }