Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

main_test.go 712B

1234567891011121314151617181920212223242526272829303132
  1. // Copyright 2020 The Gitea Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package models
  5. import (
  6. "testing"
  7. "code.gitea.io/gitea/models/unittest"
  8. user_model "code.gitea.io/gitea/models/user"
  9. "github.com/stretchr/testify/assert"
  10. )
  11. // TestFixturesAreConsistent assert that test fixtures are consistent
  12. func TestFixturesAreConsistent(t *testing.T) {
  13. assert.NoError(t, unittest.PrepareTestDatabase())
  14. unittest.CheckConsistencyFor(t,
  15. &user_model.User{},
  16. &Repository{},
  17. &Issue{},
  18. &PullRequest{},
  19. &Milestone{},
  20. &Label{},
  21. &Team{},
  22. &Action{})
  23. }
  24. func TestMain(m *testing.M) {
  25. unittest.MainTest(m, "..")
  26. }