Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Set the twitter option in the overwritten test settings

Roland Geidera40ae355c0dc
diff --git a/wger/core/tests/test_registration.py b/wger/core/tests/test_registration.py
index 62437561a..eec53efc1 100644
--- a/wger/core/tests/test_registration.py
+++ b/wger/core/tests/test_registration.py
@@ -36,13 +36,15 @@ class RegistrationTestCase(WorkoutManagerTestCase):
'''
with self.settings(WGER_SETTINGS={'USE_RECAPTCHA': True,
'REMOVE_WHITESPACE': False,
- 'ALLOW_REGISTRATION': True}):
+ 'ALLOW_REGISTRATION': True,
+ 'TWITTER': False}):
response = self.client.get(reverse('core:user:registration'))
self.assertIsInstance(response.context['form'], RegistrationForm)
with self.settings(WGER_SETTINGS={'USE_RECAPTCHA': False,
'REMOVE_WHITESPACE': False,
- 'ALLOW_REGISTRATION': True}):
+ 'ALLOW_REGISTRATION': True,
+ 'TWITTER': False}):
response = self.client.get(reverse('core:user:registration'))
self.assertIsInstance(response.context['form'], RegistrationFormNoCaptcha)