Ejemplo n.º 1
0
 def _loadModuleIsLastElement(self, pathToModule, parts, shouldBeFixture):
     className = parts[-1]
     theClass = self._doLoad(parts, pathToModule, className)
     raiseIfNone(theClass, "flClassNotFound", className, pathToModule)
     self._verifyClassType(theClass, pathToModule, className,
                           shouldBeFixture)
     return theClass
 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")
Ejemplo n.º 3
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")
 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)
Ejemplo n.º 5
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)
 def check_(self):
     adapter = self.getAdapter(self.cells.more)
     raiseIfNone(self.cells.more.more, "missingDataCell")
     self.check(self.cells.more.more, adapter)
 def enter_(self):
     adapter = self.getAdapter(self.cells.more)
     raiseIfNone(self.cells.more.more, "missingDataCell")
     self.parseAndSet(self.cells.more.more, adapter)
Ejemplo n.º 8
0
 def check_(self):
     adapter = self.getAdapter(self.cells.more)
     raiseIfNone(self.cells.more.more, "missingDataCell")
     self.check(self.cells.more.more, adapter)
Ejemplo n.º 9
0
 def enter_(self):
     adapter = self.getAdapter(self.cells.more)
     raiseIfNone(self.cells.more.more, "missingDataCell")
     self.parseAndSet(self.cells.more.more, adapter)