Added Unit tests for creating xorm engine

This commit is contained in:
konrad 2018-01-16 15:05:39 +01:00 committed by kolaente
parent 2df5cd1694
commit f4b8d07d0e
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 12 additions and 0 deletions

12
models/models_test.go Normal file
View File

@ -0,0 +1,12 @@
package models
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestSetEngine(t *testing.T) {
Config.Database.Path = "file::memory:?cache=shared"
err := SetEngine()
assert.NoError(t, err)
}