Natural form fixes
This commit is contained in:
1 parent
2fe36d513a
commit
92605e7a4d
3 files changed
+28
-8
No files matched your search
+4
-4
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user