Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add python3 test
Roland Geider53b950f21ecf
diff --git a/wger/exercises/tests/test_exercise_images.py b/wger/exercises/tests/test_exercise_images.pyindex a30a3b494..8e608e14e 100644--- a/wger/exercises/tests/test_exercise_images.py+++ b/wger/exercises/tests/test_exercise_images.py@@ -12,6 +12,7 @@## You should have received a copy of the GNU Affero General Public License+import sixfrom django.core.urlresolvers import reversefrom django.core.files import File@@ -40,10 +41,16 @@ class MainImageTestCase(WorkoutManagerTestCase):image = ExerciseImage()image.exercise = exerciseimage.status = ExerciseImage.STATUS_ACCEPTED- image.image.save(- filename,- File(open('wger/exercises/tests/{0}'.format(filename), encoding='latin1'), 'rb')- )+ if six.PY2:+ image.image.save(+ filename,+ File(open('wger/exercises/tests/{0}'.format(filename)), 'rb')+ )+ else:+ image.image.save(+ filename,+ File(open('wger/exercises/tests/{0}'.format(filename), encoding='latin1'), 'rb')+ )image.save()def test_auto_main_image(self):