2022-12-20 21:45:52 +08:00
|
|
|
package task
|
|
|
|
|
|
|
|
import (
|
2023-04-09 13:35:34 +08:00
|
|
|
"github.com/furryboard/spider-scheduler/pkg/conf"
|
|
|
|
"github.com/furryboard/spider-scheduler/pkg/log"
|
2022-12-20 21:45:52 +08:00
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func BeforeTesting() {
|
|
|
|
log.InitLogger(false)
|
|
|
|
conf.InitConfig("config.toml")
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestUpdateUserInfo(t *testing.T) {
|
|
|
|
BeforeTesting()
|
|
|
|
UpdateUserInfo()
|
|
|
|
}
|
|
|
|
|
|
|
|
func TestUpdateFans(t *testing.T) {
|
|
|
|
BeforeTesting()
|
|
|
|
UpdateFans()
|
|
|
|
}
|