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)
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)
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)
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)