api/models/models_test.go

14 lines
242 B
Go
Raw Normal View History

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