def tearDown(self): database.rollback_all() for item in self._get_soClasses()[::-1]: if isinstance(item, types.TypeType) and issubclass(item, sqlobject.SQLObject) and item != sqlobject.SQLObject \ and item != InheritableSQLObject: item.dropTable(ifExists=True)
def tearDown(self): database.rollback_all() for item in self.model.__dict__.values(): if isinstance(item, types.TypeType) and issubclass(item, sqlobject.SQLObject) and item != sqlobject.SQLObject \ and item != InheritableSQLObject: item.dropTable(ifExists=True)
def after_error_response(self): database.rollback_all()