Test: Task list / file delete

This commit is contained in:
HFO4
2020-02-21 12:09:43 +08:00
parent 9b3f5b0efd
commit 7dcc7a4880
5 changed files with 46 additions and 19 deletions

View File

@@ -1,13 +1,15 @@
package authn
import (
"github.com/HFO4/cloudreve/pkg/cache"
"github.com/stretchr/testify/assert"
"testing"
)
func TestInit(t *testing.T) {
asserts := assert.New(t)
cache.Set("setting_siteURL", "http://cloudreve.org", 0)
cache.Set("setting_siteName", "Cloudreve", 0)
asserts.NotPanics(func() {
Init()
})