1 parent 78bf017 commit 00b6395Copy full SHA for 00b6395
1 file changed
internal/academic/service/get_credit_v2_test.go
@@ -69,15 +69,13 @@ func TestAcademicService_GetCreditV2(t *testing.T) {
69
So(err.Error(), ShouldContainSubstring, "Get credit fail")
70
})
71
72
- Convey("should return credit statistics when request is successful with overflow cases", func() {
+ Convey("should return major credits when available", func() {
73
// Given: 已登录用户且系统正常,包含有超出部分的学分
74
testLoginData := &model.LoginData{
75
Id: "222200311",
76
Cookies: "ASP.NET_SessionId=lzs1t42mpkml4ag2jrxvib4z",
77
}
78
79
- // 构建预期的返回数据,包括超出部分的学分
80
- // The jwch.GetCreditV2 returns []*jwch.CreditStatistics, not jwch.CreditResponse
81
majorCredits := []*jwch.CreditStatistics{
82
{
83
Type: "公共基础必修课",
0 commit comments