mirror of
https://github.com/django/django.git
synced 2025-07-05 02:09:13 +00:00
[soc2009/multidb] Removed several tests that were no longer needed as they're tested elsehwere
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@11405 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
1e583db0df
commit
e2fecde4a9
@ -15,19 +15,6 @@ except ImportError:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
class ConnectionHandlerTestCase(TestCase):
|
class ConnectionHandlerTestCase(TestCase):
|
||||||
def setUp(self):
|
|
||||||
settings.DATABASES['__test_db'] = {
|
|
||||||
'DATABASE_ENGINE': 'sqlite3',
|
|
||||||
'DATABASE_NAME': ':memory:',
|
|
||||||
}
|
|
||||||
|
|
||||||
def tearDown(self):
|
|
||||||
del settings.DATABASES['__test_db']
|
|
||||||
|
|
||||||
def test_db_connection(self):
|
|
||||||
connections['default'].cursor()
|
|
||||||
connections['__test_db'].cursor()
|
|
||||||
|
|
||||||
def test_alias_for_connection(self):
|
def test_alias_for_connection(self):
|
||||||
for db in connections:
|
for db in connections:
|
||||||
self.assertEqual(db, connections.alias_for_connection(connections[db]))
|
self.assertEqual(db, connections.alias_for_connection(connections[db]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user