summaryrefslogtreecommitdiff
path: root/tests/multiple_database
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2013-06-28 15:13:06 -0300
committerRamiro Morales <cramm0@gmail.com>2013-06-28 21:48:16 -0300
commitc196564132a351549245a5d795391ad1ea56195c (patch)
tree4ecfa63fafe5a3553f00b91e27fc07e45b4b0abd /tests/multiple_database
parent5e08b792eff2a3ca340ad5a8a568c665e52ec39e (diff)
Removed custom profile model functionality as per deprecation TL.
Diffstat (limited to 'tests/multiple_database')
-rw-r--r--tests/multiple_database/tests.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/multiple_database/tests.py b/tests/multiple_database/tests.py
index a0d937ce81..12a6379ca0 100644
--- a/tests/multiple_database/tests.py
+++ b/tests/multiple_database/tests.py
@@ -3,9 +3,7 @@ from __future__ import absolute_import, unicode_literals
import datetime
import pickle
from operator import attrgetter
-import warnings
-from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.core import management
@@ -1626,25 +1624,6 @@ class AuthTestCase(TestCase):
command_output = new_io.getvalue().strip()
self.assertTrue('"email": "alice@example.com"' in command_output)
-
-@override_settings(AUTH_PROFILE_MODULE='multiple_database.UserProfile')
-class UserProfileTestCase(TestCase):
-
- def test_user_profiles(self):
- alice = User.objects.create_user('alice', 'alice@example.com')
- bob = User.objects.db_manager('other').create_user('bob', 'bob@example.com')
-
- alice_profile = UserProfile(user=alice, flavor='chocolate')
- alice_profile.save()
-
- bob_profile = UserProfile(user=bob, flavor='crunchy frog')
- bob_profile.save()
-
- with warnings.catch_warnings():
- warnings.simplefilter("ignore", DeprecationWarning)
- self.assertEqual(alice.get_profile().flavor, 'chocolate')
- self.assertEqual(bob.get_profile().flavor, 'crunchy frog')
-
class AntiPetRouter(object):
# A router that only expresses an opinion on syncdb,
# passing pets to the 'other' database