update: 更新程序,增加了并发测试程序
This commit is contained in:
1 parent
4974570f20
commit
bd893a4599
5 files changed
+79
-39
No files matched your search
@@ -292,7 +292,6 @@ class ChatServiceTest:
|
||||
async with websockets.connect(url) as websocket:
|
||||
await asyncio.gather(audio_stream(websocket))
|
||||
|
||||
|
||||
|
||||
#测试删除聊天
|
||||
def test_chat_delete(self):
|
||||
@@ -312,18 +311,19 @@ class ChatServiceTest:
|
||||
response = requests.request("DELETE", url)
|
||||
if response.status_code != 200:
|
||||
raise Exception("角色删除测试失败")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
def chat_test():
|
||||
chat_service_test = ChatServiceTest()
|
||||
chat_service_test.test_create_chat()
|
||||
chat_service_test.test_session_id_query()
|
||||
chat_service_test.test_session_content_query()
|
||||
chat_service_test.test_session_update()
|
||||
asyncio.run(chat_service_test.test_chat_temporary())
|
||||
asyncio.run(chat_service_test.test_chat_lasting())
|
||||
asyncio.run(chat_service_test.test_voice_call())
|
||||
# asyncio.run(chat_service_test.test_chat_lasting())
|
||||
# asyncio.run(chat_service_test.test_voice_call())
|
||||
chat_service_test.test_chat_delete()
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
chat_test()
|
||||
Reference in new issue
Block a user