def __init__(self): super(igor1TestCase, self).__init__() # Important: call the superclass constructor. self.registerCleaner( ArrayCleaner()) # Register the cleaner class to remove arrays # created by this test. try: dataPath = os.path.join(os.environ['SCIDB_DATA_PATH'], '000', '0') # Register the cleaner that will remove any data files created by this test. self.registerCleaner(DataDirCleaner(dataPath)) except: pass # Somehow, we could not get to the scidb data folder: # we will leave some junk files in there. self.__iquery = scidbIquery() # Iquery wrapper class. self.exitCode = 0 # Exit code for test harness
def __init__(self, queries, stopOnError=False): super(myTestCase, self).__init__() # Important: call the superclass constructor. self.registerCleaner(ArrayCleaner()) # Register the cleaner class to remove arrays # created by this test. self.queries = queries self.stopOnError = stopOnError try: dataPath = os.path.join(os.environ["SCIDB_DATA_PATH"], "000", "0") # Register the cleaner that will remove any data files created by this test. self.registerCleaner(DataDirCleaner(dataPath)) except: pass # Somehow, we could not get to the scidb data folder: # we will leave some junk files in there. self.__iquery = scidbIquery() # Iquery wrapper class. self.exitCode = 0 # Exit code for test harness