Example #1
0
 def run(self, *args, **kwargs):
     for i in self.create_interfaces():
         os.environ["PROM_DSN"] = i.connection_config.dsn
         prom.set_interface(i)
         super(EnvironTestCase, self).run(*args, **kwargs)
Example #2
0
 def setUpClass(cls):
     """make sure there is a default interface for any class"""
     i = cls.get_interface()
     i.delete_tables(disable_protection=True)
     prom.set_interface(i)
Example #3
0
 def setUpClass(cls):
     """make sure there is a default interface for any class"""
     for i in cls.create_interfaces():
         i.delete_tables(disable_protection=True)
         prom.set_interface(i)
Example #4
0
 def setUpClass(cls):
     """make sure there is a default interface for any class"""
     i = cls.get_interface()
     i.delete_tables(disable_protection=True)
     prom.set_interface(i)
Example #5
0
 def run(self, *args, **kwargs):
     for i in self.create_interfaces():
         os.environ["PROM_DSN"] = i.connection_config.dsn
         prom.set_interface(i)
         super(EnvironTestCase, self).run(*args, **kwargs)
Example #6
0
 def setUpClass(cls):
     """make sure there is a default interface for any class"""
     for i in cls.create_interfaces():
         i.delete_tables(disable_protection=True)
         prom.set_interface(i)
Example #7
0
 def setUpClass(cls):
     """make sure there is a default interface for any class"""
     i = cls.get_interface()
     i.unsafe_delete_tables()
     prom.set_interface(i)