devtools/__init__.py
changeset 10651 9ca33768473c
parent 10622 3cc6154b94a3
parent 10644 c43e5dc41f8b
child 10662 10942ed172de
--- a/devtools/__init__.py	Mon Sep 14 11:15:47 2015 +0200
+++ b/devtools/__init__.py	Mon Oct 12 10:53:35 2015 +0200
@@ -629,6 +629,11 @@
             return backup_name
         return None
 
+    def has_cache(self, db_id):
+        backup_name = self._backup_name(db_id)
+        return (super(PostgresTestDataBaseHandler, self).has_cache(db_id)
+                and backup_name in self.helper.list_databases(self.cursor))
+
     def init_test_database(self):
         """initialize a fresh postgresql database used for testing purpose"""
         from cubicweb.server import init_repository