mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-27 02:37:40 +08:00
31 lines
705 B
Go
31 lines
705 B
Go
// Copyright 2024 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package conversations_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
conversations_model "code.gitea.io/gitea/models/conversations"
|
|
"code.gitea.io/gitea/models/unittest"
|
|
|
|
_ "code.gitea.io/gitea/models"
|
|
_ "code.gitea.io/gitea/models/actions"
|
|
_ "code.gitea.io/gitea/models/activities"
|
|
_ "code.gitea.io/gitea/models/repo"
|
|
_ "code.gitea.io/gitea/models/user"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestFixturesAreConsistent(t *testing.T) {
|
|
assert.NoError(t, unittest.PrepareTestDatabase())
|
|
unittest.CheckConsistencyFor(t,
|
|
&conversations_model.Conversation{},
|
|
)
|
|
}
|
|
|
|
func TestMain(m *testing.M) {
|
|
unittest.MainTest(m)
|
|
}
|