math fixes
This commit is contained in:
1 parent
2a66aab196
commit
2fe36d513a
3 files changed
+10
-3
No files matched your search
+8
-1
@@ -159,7 +159,14 @@ class ReportTests(unittest.TestCase):
|
||||
self.assertIn("+2 вьюнок.", text)
|
||||
self.assertIn("+1 паук.", text)
|
||||
self.assertNotIn("Скриншот", text)
|
||||
self.assertIn("Баллы осмотра: 21 баллы.", text)
|
||||
self.assertIn("Баллы осмотра: 15 баллы.", text)
|
||||
|
||||
def test_spider_and_web_have_different_values(self):
|
||||
report = InspectionReport(
|
||||
character_name="Дикая Вишня", character_id=1604614, place="дупло", inspections=4,
|
||||
resources=(("вьюнок", 1), ("паутина", 1), ("паук", 2)),
|
||||
)
|
||||
self.assertEqual(calculate_inspection(report).points, 18)
|
||||
|
||||
def test_inspection_points_include_attempts_and_resource_values(self):
|
||||
report = InspectionReport(
|
||||
|
||||
Reference in new issue
Block a user