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