Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

12345678910111213141516171819202122232425262728293031
  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. "github.com/stretchr/testify/assert"
  9. )
  10. // TestFixturesAreConsistent assert that test fixtures are consistent
  11. func TestFixturesAreConsistent(t *testing.T) {
  12. assert.NoError(t, unittest.PrepareTestDatabase())
  13. CheckConsistencyFor(t,
  14. &User{},
  15. &Repository{},
  16. &Issue{},
  17. &PullRequest{},
  18. &Milestone{},
  19. &Label{},
  20. &Team{},
  21. &Action{})
  22. }
  23. func TestMain(m *testing.M) {
  24. unittest.MainTest(m, "..")
  25. }