fix: simplify coaching report format
This commit is contained in:
1 parent
5e34b33e47
commit
f46b9cb930
4 files changed
+31
-17
No files matched your search
+7
-6
@@ -172,7 +172,7 @@ class CalculationTests(unittest.TestCase):
|
||||
|
||||
|
||||
class ReportTests(unittest.TestCase):
|
||||
def test_coaching_report_contains_new_fields_without_screenshot_placeholder(self):
|
||||
def test_coaching_report_uses_the_compact_copyable_format(self):
|
||||
session = CoachingSession(
|
||||
date="15.08",
|
||||
skill="ЛУ",
|
||||
@@ -186,10 +186,11 @@ class ReportTests(unittest.TestCase):
|
||||
)
|
||||
text = render_coaching(session, calculate_coaching(session))
|
||||
self.assertIn("#лазание", text)
|
||||
self.assertIn("Дикая Вишня [1604614], помог(-ла) Серолап [1617140] прокачать ЛУ.", text)
|
||||
self.assertIn("Время: 11:00 – 11:20 [20 минут].", text)
|
||||
self.assertIn("Баллы белки: 6 баллов.", text)
|
||||
self.assertIn("Баллы бельчонка: 4 балла.", text)
|
||||
self.assertIn("15.08", text)
|
||||
self.assertIn("Дикая Вишня [1604614], помог(ла) Серолап [1617140].", text)
|
||||
self.assertIn("Время: 11:00 – 11:20.", text)
|
||||
self.assertIn("Баллы белки: 6", text)
|
||||
self.assertIn("Баллы бельчонка: 4", text)
|
||||
self.assertNotIn("Скриншот", text)
|
||||
self.assertNotIn("истории", text)
|
||||
|
||||
@@ -198,7 +199,7 @@ class ReportTests(unittest.TestCase):
|
||||
"15.08", "ЛУ", "11:00", "11:20", "Белка", 1, "Первый", 2,
|
||||
extra_kittens=(("Второй", 3, "самостоятельно"),),
|
||||
)
|
||||
self.assertIn("помог(-ла) котятам прокачать ЛУ: Первый [2], Второй [3].", render_coaching(session, calculate_coaching(session)))
|
||||
self.assertIn("помог(ла) котятам: Первый [2], Второй [3].", render_coaching(session, calculate_coaching(session)))
|
||||
|
||||
def test_training_report_is_separate(self):
|
||||
text = render_training(TrainingSession("Белка", 1, "Котёнок", 2))
|
||||
|
||||
@@ -47,7 +47,7 @@ class VkConversationTests(unittest.TestCase):
|
||||
confirmation = dialog.handle(77, "самостоятельно")
|
||||
self.assertIn("подтверд", confirmation.lower())
|
||||
report = dialog.handle(77, "да")
|
||||
self.assertIn("Баллы белки: 4 балла.", report)
|
||||
self.assertIn("Баллы белки: 4", report)
|
||||
|
||||
def test_step_by_step_coaching_accepts_comma_separated_kittens(self):
|
||||
dialog = BelkiDialog()
|
||||
|
||||
Reference in new issue
Block a user