summaryrefslogtreecommitdiff
path: root/tests/multiple_database/tests.py
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2013-07-02 10:49:53 +0100
committerAndrew Godwin <andrew@aeracode.org>2013-07-02 10:49:53 +0100
commitb1e0ec06f0d538eb2ab16a7c1ecefd1d896e6382 (patch)
treeb837c6144106f304a7aacdfd4fae47ea95f4158a /tests/multiple_database/tests.py
parent7a47ba6f6aeca36b8b092dbafd36abb342d34d4b (diff)
parent6c66a41c3dc697dc3bda4e31e8b05084d2ede915 (diff)
Merge branch 'master' into schema-alteration
Diffstat (limited to 'tests/multiple_database/tests.py')
-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