deploy: auto commit repo-root changes 2026-06-13 00:17:26
This commit is contained in:
@@ -10,6 +10,7 @@ if str(ROOT) not in sys.path:
|
||||
from ai_comment_dispatch import (
|
||||
AiCommentDispatcher,
|
||||
AiCommentSettings,
|
||||
AiCommentRepository,
|
||||
CommentCandidate,
|
||||
DispatchTask,
|
||||
VirtualUser,
|
||||
@@ -209,6 +210,13 @@ class AiCommentDispatchTest(unittest.TestCase):
|
||||
self.assertEqual(settings.max_tokens, 300)
|
||||
self.assertAlmostEqual(settings.temperature, 0.65)
|
||||
|
||||
def test_generated_bot_nickname_uses_normal_handle(self):
|
||||
nickname = AiCommentRepository._build_bot_nickname(17)
|
||||
|
||||
self.assertNotIn("AI评论员", nickname)
|
||||
self.assertNotIn("·", nickname)
|
||||
self.assertGreaterEqual(len(nickname), 3)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user