Self hosted FLOSS fitness/workout, nutrition and weight tracker
Further reduce the tested length of generated PDF
Roland Geider0a373ee5ba3e
diff --git a/wger/nutrition/tests/test_pdf.py b/wger/nutrition/tests/test_pdf.pyindex d577cac01..6824a7a2f 100644--- a/wger/nutrition/tests/test_pdf.py+++ b/wger/nutrition/tests/test_pdf.py@@ -43,7 +43,7 @@ class NutritionalPlanPdfExportTestCase(WorkoutManagerTestCase):'attachment; filename=nutritional-plan.pdf')# Approximate size- self.assertGreater(int(response['Content-Length']), 32000)+ self.assertGreater(int(response['Content-Length']), 31000)self.assertLess(int(response['Content-Length']), 34000)# Create an empty plan@@ -65,7 +65,7 @@ class NutritionalPlanPdfExportTestCase(WorkoutManagerTestCase):'attachment; filename=nutritional-plan.pdf')# Approximate size- self.assertGreater(int(response['Content-Length']), 33300)+ self.assertGreater(int(response['Content-Length']), 31000)self.assertLess(int(response['Content-Length']), 33420)def test_export_pdf_anonymous(self):