New admin panel

This commit is contained in:
nyan404 committed 2026-08-16 21:23:29 +03:00
1 parent 3ddf5628d8
commit 3370d5c132
5 files changed
+147 -75

No files matched your search

+9
View File
@@ -32,6 +32,15 @@ class VkConversationTests(unittest.TestCase):
report = dialog.handle(77, "да")
self.assertIn("Баллы белки: 4 баллы.", report)
def test_step_by_step_coaching_accepts_comma_separated_kittens(self):
dialog = BelkiDialog()
dialog.handle(78, "/лу")
for answer in ("15.08", "11:00", "11:20", "Белка [1]"):
dialog.handle(78, answer)
response = dialog.handle(78, "Беззубик [1566767], Малыш [123456]")
self.assertIn("самостоятель", response.lower())
self.assertEqual(dialog._states[78]["extra_kittens"], [("Малыш", 123456, "самостоятельно")])
def test_bulk_input_is_detected_and_confirmed(self):
dialog = BelkiDialog()
confirmation = dialog.handle(