fix: remove screenshot placeholders from reports
This commit is contained in:
1 parent
4183d99376
commit
cfdbdc2a07
2 files changed
+4
-16
No files matched your search
+4
-4
@@ -71,7 +71,7 @@ class CalculationTests(unittest.TestCase):
|
||||
|
||||
|
||||
class ReportTests(unittest.TestCase):
|
||||
def test_coaching_report_contains_new_fields_and_reminder(self):
|
||||
def test_coaching_report_contains_new_fields_without_screenshot_placeholder(self):
|
||||
session = CoachingSession(
|
||||
date="15.08",
|
||||
skill="ЛУ",
|
||||
@@ -89,8 +89,8 @@ class ReportTests(unittest.TestCase):
|
||||
self.assertIn("Время: 11:00 – 11:20 [20 минут].", text)
|
||||
self.assertIn("Баллы белки: 6 баллы.", text)
|
||||
self.assertIn("Баллы бельчонка: 8 баллы.", text)
|
||||
self.assertIn("[Скриншот Игровой с вашим персонажем", text)
|
||||
self.assertIn("истории", text)
|
||||
self.assertNotIn("Скриншот", text)
|
||||
self.assertNotIn("истории", text)
|
||||
|
||||
def test_training_report_is_separate(self):
|
||||
text = render_training(TrainingSession("Белка", 1, "Котёнок", 2))
|
||||
@@ -111,7 +111,7 @@ class ReportTests(unittest.TestCase):
|
||||
self.assertIn("#осмотр", text)
|
||||
self.assertIn("-2 вьюнок.", text)
|
||||
self.assertIn("+1 паук.", text)
|
||||
self.assertIn("Скриншот истории и рта.", text)
|
||||
self.assertNotIn("Скриншот", text)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user