#307 Don't use the cache when running tests
Merged 7 years ago by sayanchowdhury. Opened 7 years ago by abompard.
abompard/fedora-hubs no-cache-in-tests  into  develop

file modified
+3
@@ -34,6 +34,9 @@ 

          self.app = hubs.app.app.test_client()

          self.app.testing = True

          self.session = hubs.app.session

+         from hubs.widgets.base import cache

+         cache.configure(backend='dogpile.cache.null',

+                         replace_existing_backend=True)

          self.populate()

  

      def tearDown(self):

It makes no sense to use the Dogpile cache when running tests, and it could shadow legitimate errors.

Pull-Request has been merged by sayanchowdhury

7 years ago
Metadata