vikunja-api/models/models_test.go

14 lines
242 B
Go
Raw Normal View History

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