Skip to content

Commit 00b6395

Browse files
committed
fix: update creditV2Test
1 parent 78bf017 commit 00b6395

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

internal/academic/service/get_credit_v2_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,13 @@ func TestAcademicService_GetCreditV2(t *testing.T) {
6969
So(err.Error(), ShouldContainSubstring, "Get credit fail")
7070
})
7171

72-
Convey("should return credit statistics when request is successful with overflow cases", func() {
72+
Convey("should return major credits when available", func() {
7373
// Given: 已登录用户且系统正常,包含有超出部分的学分
7474
testLoginData := &model.LoginData{
7575
Id: "222200311",
7676
Cookies: "ASP.NET_SessionId=lzs1t42mpkml4ag2jrxvib4z",
7777
}
7878

79-
// 构建预期的返回数据,包括超出部分的学分
80-
// The jwch.GetCreditV2 returns []*jwch.CreditStatistics, not jwch.CreditResponse
8179
majorCredits := []*jwch.CreditStatistics{
8280
{
8381
Type: "公共基础必修课",

0 commit comments

Comments
 (0)