Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Automatic linting

Github-actions6fd8e29a5db6
diff --git a/wger/nutrition/tests/test_sync.py b/wger/nutrition/tests/test_sync.py
index 6b8908aec..07a265749 100644
--- a/wger/nutrition/tests/test_sync.py
+++ b/wger/nutrition/tests/test_sync.py
@@ -67,19 +67,13 @@ class MockIngredientResponse:
'fat_saturated': '4.500',
'fiber': '2.000',
'sodium': '0.356',
- 'license': {
- 'id': 5,
- 'name': 'Test license'
- },
+ 'license': {'id': 5, 'name': 'Test license'},
'license_title': ' Gâteau double chocolat ',
'license_object_url': '',
'license_author': 'Open Food Facts',
'license_author_url': '',
'license_derivative_source_url': '',
- 'language': {
- 'id': 2,
- 'short_name': 'de'
- },
+ 'language': {'id': 2, 'short_name': 'de'},
'is_vegan': True,
'is_vegetarian': True,
'nutriscore': 'd',
@@ -113,18 +107,13 @@ class MockIngredientResponse:
'fat_saturated': '4.600',
'fiber': None,
'sodium': '0.820',
- 'license': {
- 'id': 5,
- 'name': 'Test license'
- },
+ 'license': {'id': 5, 'name': 'Test license'},
'license_title': ' Maxi Hot Dog New York Style',
'license_object_url': '',
'license_author': 'Open Food Facts',
'license_author_url': '',
'license_derivative_source_url': '',
- 'language': {
- 'id': 3
- },
+ 'language': {'id': 3},
'is_vegan': None,
'is_vegetarian': None,
'nutriscore': None,
@@ -226,12 +215,8 @@ class TestSyncMethods(WgerTestCase):
'protein': '150.000',
'carbohydrates': '10.000',
'fat': '10.000',
- 'language': {
- 'id': 2
- },
- 'license': {
- 'id': 5
- },
+ 'language': {'id': 2},
+ 'license': {'id': 5},
'license_author': 'Open Food Facts',
'weight_units': [],
},
@@ -246,12 +231,8 @@ class TestSyncMethods(WgerTestCase):
'protein': '11.000',
'carbohydrates': '27.000',
'fat': '11.000',
- 'language': {
- 'id': 3
- },
- 'license':{
- 'id': 5
- },
+ 'language': {'id': 3},
+ 'license': {'id': 5},
'license_author': 'Open Food Facts',
'weight_units': [],
},