fix: award points for every snake
This commit is contained in:
1 parent
617fae7336
commit
5b8f61fb96
3 files changed
+7
-16
No files matched your search
+4
-3
@@ -252,13 +252,14 @@ class ReportTests(unittest.TestCase):
|
||||
with self.assertRaises(ValueError):
|
||||
InspectionReport("Белка", 1, "дупло", 1, (("вьюнок", True),))
|
||||
|
||||
def test_inspection_resource_aliases_and_typos(self):
|
||||
def test_inspection_resource_aliases_typos_and_all_snakes(self):
|
||||
report = InspectionReport(
|
||||
character_name="Белка", character_id=1, place="дупло", inspections=0,
|
||||
resources=(("ПАУТИНАА", 1), ("обычный мохх", 1), ("водяной мох", 1),
|
||||
("Луговая змея", 1), ("змеяя", 1), ("бурундук", 1)),
|
||||
("Луговая змея", 1), ("змеяя", 1), ("щитомордник", 1),
|
||||
("аспид", 1), ("бурундук", 1)),
|
||||
)
|
||||
self.assertEqual(calculate_inspection(report).points, 7 + 3 + 2 + 1 + 0 + 1)
|
||||
self.assertEqual(calculate_inspection(report).points, 7 + 3 + 2 + 1 + 1 + 1 + 1 + 1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user