Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add Cam Cecil to AUTHORS and fix test_ingredient_sync_languages.
Cam Cecil35fc23d34e66
diff --git a/AUTHORS.rst b/AUTHORS.rstindex d01f1735a..7b3361b5f 100644--- a/AUTHORS.rst+++ b/AUTHORS.rst@@ -85,6 +85,7 @@ Developers* eyJhb - https://github.com/eyJhb* Joshua Shelley - https://github.com/navyjosh* Matt Harrison - https://github.com/Maralai+* Cam Cecil - https://github.com/scrapcodeTranslatorsdiff --git a/wger/nutrition/tests/test_sync.py b/wger/nutrition/tests/test_sync.pyindex 7cfe3fdc7..c5b54c838 100644--- a/wger/nutrition/tests/test_sync.py+++ b/wger/nutrition/tests/test_sync.py@@ -126,9 +126,12 @@ class TestSyncMethods(WgerTestCase):@patch('requests.get', return_value=MockIngredientResponse())def test_ingredient_sync_languages(self, mock_request):- # Ensure correct URL is called when language codes are provided+ # Call the function with the language_codes parametersync_ingredients(lambda x: x, language_codes='en')++ # Assert that the correct URL is called with the expected parameters+ expected_url = 'https://wger.de/api/v2/ingredient/?limit=999&language__in=2'mock_request.assert_called_with(- 'https://wger.de/api/v2/ingredient/?limit=999&language=2',+ expected_url,headers=wger_headers(),)