Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix the ingredient test

Roland Geiderf88299a48fb1
diff --git a/wger/nutrition/tests/ingredient.py b/wger/nutrition/tests/ingredient.py
index aac6a5f80..dc42d07aa 100644
--- a/wger/nutrition/tests/ingredient.py
+++ b/wger/nutrition/tests/ingredient.py
@@ -236,11 +236,11 @@ class IngredientValuesTestCase(WorkoutManagerTestCase):
self.assertEqual(response.status_code, 200)
result = json.loads(response.content)
self.assertEqual(len(result), 8)
- self.assertEqual(result, {u'sodium': u'0.0055',
+ self.assertEqual(result, {u'sodium': u'0.00549',
u'energy': u'1.76',
u'fat': u'0.0819',
u'carbohydrates_sugar': 0,
- u'fat_saturated': u'0.0324',
+ u'fat_saturated': u'0.03244',
u'fibres': 0,
u'protein': u'0.2563',
u'carbohydrates': u'0'})
@@ -254,11 +254,11 @@ class IngredientValuesTestCase(WorkoutManagerTestCase):
self.assertEqual(response.status_code, 200)
result = json.loads(response.content)
self.assertEqual(len(result), 8)
- self.assertEqual(result, {u'sodium': u'0.61325',
+ self.assertEqual(result, {u'sodium': u'0.612135',
u'energy': u'196.24',
u'fat': u'9.13185',
u'carbohydrates_sugar': 0,
- u'fat_saturated': u'3.6126',
+ u'fat_saturated': u'3.61706',
u'fibres': 0,
u'protein': u'28.57745',
u'carbohydrates': u'0.0'})