Self hosted FLOSS fitness/workout, nutrition and weight tracker
Fix some problems with the tests when running on some systems
Roland Geider1238d76e74e0
diff --git a/wger/manager/tests/testcase.py b/wger/manager/tests/testcase.pyindex 30914269c..de8e24a07 100644--- a/wger/manager/tests/testcase.py+++ b/wger/manager/tests/testcase.py@@ -563,7 +563,7 @@ class ApiBaseResourceTestCase(ResourceTestCase, BaseTestCase):if self.resource_updatable:self.assertHttpNotImplemented(response)else:- self.assertIn(response.status_code, (501, 401))+ self.assertIn(response.status_code, (501, 400, 401))def test_delete(self):'''diff --git a/wger/nutrition/tests/test_weight_unit_ingredient.py b/wger/nutrition/tests/test_weight_unit_ingredient.pyindex 502b99c16..a3bf1d572 100644--- a/wger/nutrition/tests/test_weight_unit_ingredient.py+++ b/wger/nutrition/tests/test_weight_unit_ingredient.py@@ -106,6 +106,12 @@ class WeightUnitToIngredientApiTestCase(ApiBaseResourceTestCase):resource = 'ingredienttoweightunit'user = Noneresource_updatable = False+ data = {"amount": "1",+ "gramm": 240,+ "id": 1,+ "ingredient": "/api/v1/ingredient/1/",+ "resource_uri": "/api/v1/ingredienttoweightunit/1/",+ "unit": "/api/v1/weightunit/1/"}class WeightUnitToIngredientDeatilApiTestCase(ApiBaseResourceTestCase):