Natural form fixes

This commit is contained in:
nyan404 committed 2026-08-16 23:03:14 +03:00
1 parent 2fe36d513a
commit 92605e7a4d
3 files changed
+28 -8

No files matched your search

+4 -4
View File
@@ -134,8 +134,8 @@ class ReportTests(unittest.TestCase):
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("Баллы белки: 6 баллов.", text)
self.assertIn("Баллы бельчонка: 4 балла.", text)
self.assertNotIn("Скриншот", text)
self.assertNotIn("истории", text)
@@ -159,7 +159,7 @@ class ReportTests(unittest.TestCase):
self.assertIn("+2 вьюнок.", text)
self.assertIn("+1 паук.", text)
self.assertNotIn("Скриншот", text)
self.assertIn("Баллы осмотра: 15 баллы.", text)
self.assertIn("Баллы осмотра: 15 баллов.", text)
def test_spider_and_web_have_different_values(self):
report = InspectionReport(
@@ -175,7 +175,7 @@ class ReportTests(unittest.TestCase):
resources=(("паутина", 1), ("надпись", 1)),
)
self.assertEqual(calculate_inspection(report).points, 11)
self.assertIn("Баллы осмотра: 11 баллы.", render_inspection(report))
self.assertIn("Баллы осмотра: 11 баллов.", render_inspection(report))
def test_inspection_rejects_negative_resources(self):
with self.assertRaises(ValueError):
+1 -1
View File
@@ -30,7 +30,7 @@ class VkConversationTests(unittest.TestCase):
confirmation = self.add_screenshot(dialog, 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()