コード例 #1
0
 def getAdapter(self, cell):
     raiseIfNone(cell, "missingMethodNameCell")
     methodName = self.camel(cell.text())
     raiseIf(methodName == "", "missingMethodName")
     raiseIfNone(self.actor, "missingActor")
     try:
         adapter = TypeAdapter(self.actor, methodName)
     except Exception, ex:
         self.exception(cell, ex)
         raise FitException("IgnoreException")
コード例 #2
0
ファイル: ActionFixture.py プロジェクト: copyleftdev/pyfit
 def getAdapter(self, cell):
     raiseIfNone(cell, "missingMethodNameCell")
     methodName = self.camel(cell.text())
     raiseIf(methodName == "", "missingMethodName")
     raiseIfNone(self.actor, "missingActor")
     try:
         adapter = TypeAdapter(self.actor, methodName)
     except Exception, ex:
         self.exception(cell, ex)
         raise FitException("IgnoreException")
コード例 #3
0
 def start_(self):
     methodNameCell = self.cells.more
     raiseIfNone(methodNameCell, "missingActorNameCell")
     path = methodNameCell.text()
     raiseIf(path == "", "ActionStart")
     # ??? must be a fixture. Why?
     try:
         theClass = self.loadFixture(path)
         ActionFixture.actor = theClass()
     except Exception, e:
         self.exception(methodNameCell, e)
コード例 #4
0
ファイル: ActionFixture.py プロジェクト: copyleftdev/pyfit
 def start_(self):
     methodNameCell = self.cells.more
     raiseIfNone(methodNameCell, "missingActorNameCell")
     path = methodNameCell.text()
     raiseIf(path == "", "ActionStart")
     # ??? must be a fixture. Why?
     try:
         theClass = self.loadFixture(path)
         ActionFixture.actor = theClass()
     except Exception, e:
         self.exception(methodNameCell, e)