コード例 #1
0
ファイル: plugin.py プロジェクト: kassoulet/NoseXUnitLite
 def enableSuite(self, test):
     '''Check that suite exists. If not exists, create a new one'''
     # Get the current module
     current = ntools.get_test_id(test).split('.')[0]
     # Check if this is a new one
     if self.module != current:
         # Set the new module
         self.module = current
         # Stop the previous suite
         self.stopSuite()
         # Start a new one
         self.startSuite(self.module)
コード例 #2
0
ファイル: core.py プロジェクト: kassoulet/NoseXUnitLite
 def getClass(self):
     """Return the class name"""
     return ".".join(ntools.get_test_id(self.elmt).split(".")[:2])
コード例 #3
0
ファイル: core.py プロジェクト: kassoulet/NoseXUnitLite
 def getName(self):
     """Return the name of the method"""
     return ".".join(ntools.get_test_id(self.elmt).split(".")[2:])