diff --git a/wger/core/tests/test_fitbit_sync.py b/wger/core/tests/test_fitbit_sync.py index a834e958d..895d270c9 100644 --- a/wger/core/tests/test_fitbit_sync.py +++ b/wger/core/tests/test_fitbit_sync.py @@ -1,5 +1,6 @@ from django.core.urlresolvers import reverse from wger.core.tests.base_testcase import WorkoutManagerTestCase +from django.conf import settings import requests import json @@ -7,11 +8,15 @@ import json class SyncWithFitbitTestCase(WorkoutManagerTestCase): def test_it_shows_instructions(self): + settings.WGER_SETTINGS['FITBIT_CLIENT_ID'] = '2283MF' + settings.WGER_SETTINGS['FITBIT_CLIENT_SECRET'] = 'thisisaclientsecret' self.user_login() r = self.client.get(reverse('core:user:fitbit')) self.assertContains(r, "https://www.fitbit.com/oauth2/authorize", status_code=200) def test_it_handles_oauth_response(self): + settings.WGER_SETTINGS['FITBIT_CLIENT_ID'] = '2283MF' + settings.WGER_SETTINGS['FITBIT_CLIENT_SECRET'] = 'thisisaclientsecret' oauth_response = {"access_token": "test-token"} url = reverse('core:user:fitbit')