コード例 #1
0
ファイル: EDPlugin.py プロジェクト: olofsvensson/edna-kernel
 def tellFinished(self, _edObject=None):
     """
     Tell EDStatus that the plugin has finished, either in success either in error 
     """
     if self.isFailure():
         EDStatus.tellFailure(self.__strPluginId)
     else:
         EDStatus.tellSuccess(self.__strPluginId)
コード例 #2
0
ファイル: EDPlugin.py プロジェクト: yayahjb/edna-mx
 def tellFinished(self, _edObject=None):
     """
     Tell EDStatus that the plugin has finished, either in success either in error 
     """
     if self.isFailure():
         EDStatus.tellFailure(self.__strPluginId)
     else:
         EDStatus.tellSuccess(self.__strPluginId)
コード例 #3
0
ファイル: EDTestCaseEDStatus.py プロジェクト: rentreg/edna
 def unitTestFailed(self):
     """
     check the failure of a plugin is registerd 
     """
     EDVerbose.DEBUG("EDTestCaseEDStatus.unitTestFailed")
     EDStatus.tellFailure(self.strPluginName)
     EDVerbose.DEBUG("Success Plugins: " + ",".join(EDStatus.getSuccess()))
     EDVerbose.DEBUG("Running Plugins: " + ",".join(EDStatus.getRunning()))
     EDVerbose.DEBUG("Failed Plugins: " + ",".join(EDStatus.getFailure()))
     EDAssert.equal(False, self.strPluginName in EDStatus.getRunning(), "Plugin not yet running")
     EDAssert.equal(False, self.strPluginName in EDStatus.getSuccess(), "Plugin not yet Finished")
     EDAssert.equal(True, self.strPluginName in EDStatus.getFailure(), "Plugin Failed as expected")