fix: decline inspection counts in Russian
This commit is contained in:
1 parent
b1b1c6bcf0
commit
a22d23dcd7
2 files changed
+22
-5
No files matched your search
@@ -192,6 +192,11 @@ class ReportTests(unittest.TestCase):
|
||||
)
|
||||
self.assertEqual(calculate_inspection(report).points, 18)
|
||||
|
||||
def test_inspection_count_uses_correct_russian_form(self):
|
||||
for count, phrase in ((1, "1 раз"), (2, "2 раза"), (4, "4 раза"), (5, "5 раз"), (21, "21 раз"), (24, "24 раза")):
|
||||
report = InspectionReport("Белка", 1, "дупло", count)
|
||||
self.assertIn(phrase, render_inspection(report))
|
||||
|
||||
def test_inspection_points_include_attempts_and_resource_values(self):
|
||||
report = InspectionReport(
|
||||
character_name="Дикая Вишня", character_id=1604614,
|
||||
|
||||
Reference in new issue
Block a user