Cloudreve/pkg/authn/auth_test.go

18 lines
349 B
Go
Raw Normal View History

package authn
import (
2020-02-20 23:09:43 -05:00
"github.com/HFO4/cloudreve/pkg/cache"
"github.com/stretchr/testify/assert"
"testing"
)
func TestInit(t *testing.T) {
asserts := assert.New(t)
2020-02-20 23:09:43 -05:00
cache.Set("setting_siteURL", "http://cloudreve.org", 0)
cache.Set("setting_siteName", "Cloudreve", 0)
asserts.NotPanics(func() {
Init()
})
asserts.NotNil(AuthnInstance)
}