23 lines
380 B
Go
23 lines
380 B
Go
|
package task
|
||
|
|
||
|
import (
|
||
|
"github.com/eigeen/furryboard/spider-scheduler/pkg/conf"
|
||
|
"github.com/eigeen/furryboard/spider-scheduler/pkg/log"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func BeforeTesting() {
|
||
|
log.InitLogger(false)
|
||
|
conf.InitConfig("config.toml")
|
||
|
}
|
||
|
|
||
|
func TestUpdateUserInfo(t *testing.T) {
|
||
|
BeforeTesting()
|
||
|
UpdateUserInfo()
|
||
|
}
|
||
|
|
||
|
func TestUpdateFans(t *testing.T) {
|
||
|
BeforeTesting()
|
||
|
UpdateFans()
|
||
|
}
|