Commits

Jason Moiron committed bc012d2

fix blacklist test for new johnny.settings

  • Participants
  • Parent commits e954f8a

Comments (0)

Files changed (1)

File johnny/tests/cache.py

     fixtures = base.johnny_fixtures
 
     def test_basic_blacklist(self):
-        from johnny import cache
+        from johnny import cache, settings
         from testapp.models import Genre, Book
         q = base.message_queue()
-        old = cache.blacklist
-        cache.blacklist = set(['testapp_genre'])
+        old = settings.BLACKLIST
+        settings.BLACKLIST = set(['testapp_genre'])
         connection.queries = []
         Book.objects.get(id=1)
         Book.objects.get(id=1)
         list(Genre.objects.all())
         list(Genre.objects.all())
         self.failUnless(not any((q.get_nowait(), q.get_nowait())))
-        cache.blacklist = old
+        settings.BLACKLIST = old
 
 
 class MultiDbTest(TransactionQueryCacheBase):