Self hosted FLOSS fitness/workout, nutrition and weight tracker
Make file size test more flexible
Roland Geider52af002b3c43
diff --git a/wger/weight/tests/test_csv_export.py b/wger/weight/tests/test_csv_export.pyindex e20dde572..be7969c6c 100644--- a/wger/weight/tests/test_csv_export.py+++ b/wger/weight/tests/test_csv_export.py@@ -36,7 +36,8 @@ class WeightCsvExportTestCase(WorkoutManagerTestCase):self.assertEqual(response['Content-Type'], 'text/csv')self.assertEqual(response['Content-Disposition'],'attachment; filename=Weightdata.csv')- self.assertEqual(len(response.content), 122)+ self.assertGreaterEqual(len(response.content), 120)+ self.assertLessEqual(len(response.content), 140)def test_export_csv_loged_in(self):'''diff --git a/wger/weight/tests/test_overview.py b/wger/weight/tests/test_overview.pyindex 33b2740ef..6afacf790 100644--- a/wger/weight/tests/test_overview.py+++ b/wger/weight/tests/test_overview.py@@ -54,7 +54,8 @@ class WeightExportCsvTestCase(WorkoutManagerTestCase):self.assertEqual(response.status_code, 200)self.assertEqual(response['Content-Type'], 'text/csv')- self.assertEqual(len(response.content), 122)+ self.assertGreaterEqual(len(response.content), 120)+ self.assertLessEqual(len(response.content), 140)def test_csv_export_loged_in(self):'''