mirror of https://github.com/go-gitea/gitea
Fix test
This commit is contained in:
parent
f8d57dcfa0
commit
05674f7a38
|
@ -11,12 +11,16 @@ import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_AddConfidentialClientColumnToOAuth2ApplicationTable(t *testing.T) {
|
// premigration
|
||||||
// premigration
|
type OAuth2Application struct {
|
||||||
type OAuth2Application struct {
|
ID int64
|
||||||
ID int64
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
func (OAuth2Application) TableName() string {
|
||||||
|
return "oauth2_application"
|
||||||
|
}
|
||||||
|
|
||||||
|
func Test_AddConfidentialClientColumnToOAuth2ApplicationTable(t *testing.T) {
|
||||||
// Prepare and load the testing database
|
// Prepare and load the testing database
|
||||||
x, deferable := base.PrepareTestEnv(t, 0, new(OAuth2Application))
|
x, deferable := base.PrepareTestEnv(t, 0, new(OAuth2Application))
|
||||||
defer deferable()
|
defer deferable()
|
||||||
|
|
Loading…
Reference in New Issue