mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 18:58:38 +00:00
Add test for the tablename
This commit is contained in:
@@ -13,7 +13,12 @@ import (
|
|||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
//////////////////// Application
|
func TestApplicationTableName(t *testing.T) {
|
||||||
|
e := unittest.GetXORMEngine()
|
||||||
|
tableInfo, err := e.TableInfo(new(auth_model.OAuth2Application))
|
||||||
|
assert.NoError(t, err)
|
||||||
|
assert.EqualValues(t, "oauth2_application", tableInfo.Name)
|
||||||
|
}
|
||||||
|
|
||||||
func TestOAuth2Application_GenerateClientSecret(t *testing.T) {
|
func TestOAuth2Application_GenerateClientSecret(t *testing.T) {
|
||||||
assert.NoError(t, unittest.PrepareTestDatabase())
|
assert.NoError(t, unittest.PrepareTestDatabase())
|
||||||
|
Reference in New Issue
Block a user