Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 4
0
 def after_error_response(self):
     database.rollback_all()