Remove the create_user argument to setUp.

Instead, use a class attribute to define test behavior. This allows for
easier addition of new mixins over time.
This commit is contained in:
Calen Pennington
2016-04-14 16:19:33 -04:00
parent 39ff841d1f
commit 18e1610043
20 changed files with 59 additions and 39 deletions

View File

@@ -1729,8 +1729,10 @@ class ThirdPartyRegistrationTestMixin(ThirdPartyOAuthTestMixin):
"""
Tests for the User API registration endpoint with 3rd party authentication.
"""
CREATE_USER = False
def setUp(self):
super(ThirdPartyRegistrationTestMixin, self).setUp(create_user=False)
super(ThirdPartyRegistrationTestMixin, self).setUp()
self.url = reverse('user_api_registration')
def data(self, user=None):