20 lines
464 B
Go
20 lines
464 B
Go
package task
|
|
|
|
import (
|
|
"context"
|
|
"likedream-goframe/internal/testutil"
|
|
"testing"
|
|
|
|
"github.com/bytedance/sonic"
|
|
)
|
|
|
|
func TestGetHistoryForm(t *testing.T) {
|
|
ctx := context.Background()
|
|
loginClient, schoolDetail := testutil.LoginTestUser()
|
|
task := NewSleepCheckTask(loginClient, schoolDetail.WecloudUrl)
|
|
y, m := task.GetYearAndMonth(ctx)
|
|
month := task.QueryFormByYearMonth(ctx, "晚查寝", y, m)
|
|
marshal, _ := sonic.Marshal(month)
|
|
t.Log(string(marshal))
|
|
}
|