chore/ 删除无用文件
This commit is contained in:
@@ -44,7 +44,10 @@ class ConversationMessagesHistoryTest(unittest.TestCase):
|
||||
)
|
||||
|
||||
self.assertEqual(
|
||||
[(msg["senderType"], msg["messageType"], msg["content"]) for msg in messages],
|
||||
[
|
||||
(msg["senderType"], msg["messageType"], msg["content"])
|
||||
for msg in messages
|
||||
],
|
||||
[
|
||||
("user", "audio", "第一段"),
|
||||
("assistant", "text", "继续说"),
|
||||
@@ -101,7 +104,9 @@ class ConversationMessagesHistoryTest(unittest.TestCase):
|
||||
}
|
||||
]
|
||||
|
||||
latest_message_time = conversations_router._latest_message_time_ms(conversation, history)
|
||||
latest_message_time = conversations_router._latest_message_time_ms(
|
||||
conversation, history
|
||||
)
|
||||
|
||||
self.assertEqual(latest_message_time, 1773489605000)
|
||||
|
||||
@@ -112,6 +117,8 @@ class ConversationMessagesHistoryTest(unittest.TestCase):
|
||||
started_at=datetime(2026, 3, 14, 12, 0, 0, tzinfo=timezone.utc),
|
||||
)
|
||||
|
||||
timestamp = conversations_router._message_timestamp_ms({}, conversation.started_at)
|
||||
timestamp = conversations_router._message_timestamp_ms(
|
||||
{}, conversation.started_at
|
||||
)
|
||||
|
||||
self.assertEqual(timestamp, 1773489600000)
|
||||
|
||||
Reference in New Issue
Block a user