예제 #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)
예제 #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)
예제 #3
0
파일: testutil.py 프로젝트: thraxil/gtreed
 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)
예제 #4
0
파일: controllers.py 프로젝트: ccnmtl/tasty
 def after_error_response(self):
     database.rollback_all()