datarhei-dragonfork-core/app/import/main_test.go

21 lines
331 B
Go
Raw Normal View History

2022-07-22 02:33:38 -04:00
package main
import (
"testing"
"github.com/datarhei/core/v16/config"
"github.com/stretchr/testify/require"
)
func TestImport(t *testing.T) {
configstore := config.NewDummyStore()
cfg := configstore.Get()
err := configstore.Set(cfg)
require.NoError(t, err)
err = doImport(nil, configstore)
require.NoError(t, err)
}