File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,8 @@ def test_stop_seq_exceed_num():
106
106
}
107
107
payload = build_request_payload (TEMPLATE , data )
108
108
resp = send_request (URL , payload ).json ()
109
- assert resp .get ("object" ) == "error" , "stop 超出个数应触发异常"
110
- assert "exceeds the limit max_stop_seqs_num" in resp .get ("message" , "" ), "未返回预期的报错信息"
109
+ assert resp .get ("detail" ). get ( " object" ) == "error" , "stop 超出个数应触发异常"
110
+ assert "exceeds the limit max_stop_seqs_num" in resp .get ("detail" ). get ( " message" , "" ), "未返回预期的报错信息"
111
111
112
112
113
113
def test_stop_seq_exceed_length ():
@@ -120,5 +120,5 @@ def test_stop_seq_exceed_length():
120
120
}
121
121
payload = build_request_payload (TEMPLATE , data )
122
122
resp = send_request (URL , payload ).json ()
123
- assert resp .get ("object" ) == "error" , "stop 超出长度应触发异常"
124
- assert "exceeds the limit stop_seqs_max_len" in resp .get ("message" , "" ), "未返回预期的报错信息"
123
+ assert resp .get ("detail" ). get ( " object" ) == "error" , "stop 超出长度应触发异常"
124
+ assert "exceeds the limit stop_seqs_max_len" in resp .get ("detail" ). get ( " message" , "" ), "未返回预期的报错信息"
You can’t perform that action at this time.
0 commit comments