api/models/models_test.go

13 lines
211 B
Go
Raw Normal View History

2018-06-10 09:11:41 +00:00
package models
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestSetEngine(t *testing.T) {
Config.Database.Path = "file::memory:?cache=shared"
err := SetEngine()
assert.NoError(t, err)
}