Self hosted FLOSS fitness/workout, nutrition and weight tracker
Fix tests
Roland Geider1fbf7a7a9c90
diff --git a/wger/exercises/models.py b/wger/exercises/models.pyindex e42750f46..8d29f0b6d 100644--- a/wger/exercises/models.py+++ b/wger/exercises/models.py@@ -286,7 +286,7 @@ class Exercise(AbstractLicenseModel, models.Model):submitted exercises only)'''try:- user = User.objects.get(username=self.user)+ user = User.objects.get(username=self.license_author)except User.DoesNotExist:returnif self.license_author and user.email:diff --git a/wger/nutrition/tests/test_pdf.py b/wger/nutrition/tests/test_pdf.pyindex 01885e138..d577cac01 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']), 33900)+ self.assertGreater(int(response['Content-Length']), 32000)self.assertLess(int(response['Content-Length']), 34000)# Create an empty plan