feat: add earned points calculator

This commit is contained in:
nyan404 committed 2026-08-25 13:32:33 +03:00
1 parent 8e4f461e8b
commit 9e3b50c967
7 files changed
+160 -5

No files matched your search

+12
View File
@@ -27,6 +27,18 @@ class VkConversationTests(unittest.TestCase):
dialog.handle(110, "10")
self.assertIn("от 1 до 1440", dialog.handle(110, "1441"))
def test_calculator_replaces_goal_with_points_dialog(self):
dialog = BelkiDialog()
self.assertIn("прокачку", dialog.handle(111, "/калькулятор").lower())
self.assertIn("навык", dialog.handle(111, "прокачка").lower())
dialog.handle(111, "ЛУ")
dialog.handle(111, "11:00")
dialog.handle(111, "11:20")
dialog.handle(111, "2")
response = dialog.handle(111, "сам, несам")
self.assertIn("Куратор: 8", response)
self.assertIn("Бельчонок 2: 4", response)
def test_step_by_step_coaching_dialog(self):
dialog = BelkiDialog()
self.assertIn("дат", dialog.handle(77, "/лу").lower())