Changes a skip condition.

This commit is contained in:
Bertrand Bordage 2014-10-21 18:22:24 +02:00
parent b872e22cdc
commit aa1d367c89

View file

@ -437,8 +437,8 @@ class ReadTestCase(TransactionTestCase):
self.assertListEqual(permissions8, permissions7)
self.assertListEqual(permissions8, self.group__permissions)
@skipIf(len(settings.CACHES) == 1,
'We cant change the cache used since theres only one configured')
@skipIf(len(settings.DATABASES) == 1,
'We cant change the DB used since theres only one configured')
def test_using(self):
with self.assertNumQueries(1):
data1 = list(Test.objects.all())