fix(identity): validate persistent character pairs

This commit is contained in:
nyan404 committed 2026-08-25 04:07:51 +03:00
1 parent 0aec421ad2
commit 6af34d4706
8 files changed
+44 -1

No files matched your search

+9
View File
@@ -104,6 +104,15 @@ class VkConversationTests(unittest.TestCase):
dialog.handle(1, "/лу")
self.assertIn("отмен", dialog.handle(1, "/отмена").lower())
def test_person_input_rejects_a_non_positive_id(self):
dialog = BelkiDialog()
dialog.handle(1, "/лу")
dialog.handle(1, "15.08")
dialog.handle(1, "ЛУ")
dialog.handle(1, "11:00")
dialog.handle(1, "11:20")
self.assertIn("положительным", dialog.handle(1, "Белка [0]").lower())
def test_bulk_inspector_returns_fields_and_missing_questions(self):
inspected = inspect_bulk_text("/лу 15.08 11:00 11:20 | Белка [1] | Котёнок [2]")
self.assertEqual(inspected["status"], "needs_clarification")