deploy: auto commit repo-root changes 2026-06-13 00:17:26

This commit is contained in:
hajimi
2026-06-13 00:17:26 +08:00
parent 16b8d0365a
commit c3385b0e04
6 changed files with 160 additions and 258 deletions
@@ -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()