Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 def after_error_response(self):
     database.rollback_all()