Commit 84e1ecf9b687b6441b142c7d91081d44f2c912c5

Authored by Arthur VINCENT
1 parent 6a30c62d
Exists in develop

REFAC : change tmp directory in DimensionalityReductionTests.test_SampleFilePCAReduction

scripts/Tests/UnitTests/DimensionalityReductionTests.py
... ... @@ -164,19 +164,22 @@ class DimensionalityReductionTests(unittest.TestCase):
164 164  
165 165 def test_SampleFilePCAReduction(self):
166 166 from Iota2Tests import compareSQLite
  167 +
  168 + test_testOutputSampleFileName = iota2_dataTest + "/" + self.testOutputSampleFileName
  169 +
167 170 DR.SampleFilePCAReduction(self.inputSampleFileName,
168   - self.testOutputSampleFileName, 'date',
169   - self.targetDimension)
  171 + test_testOutputSampleFileName, 'date',
  172 + self.targetDimension, tmpDir=os.path.join(iota2_dataTest, "tmp"))
170 173  
171   - print compareSQLite(self.testOutputSampleFileName,
172   - self.outputSampleFileName,
173   - CmpMode="coordinates")
  174 + print compareSQLite(test_testOutputSampleFileName,
  175 + self.outputSampleFileName,
  176 + CmpMode="coordinates")
174 177  
175 178 #self.assertTrue(compareSQLite(self.testOutputSampleFileName,
176 179 # self.outputSampleFileName,
177 180 # CmpMode="coordinates"),
178 181 # msg="Output sample files don't match")
179   - self.assertTrue(filecmp.cmp(self.testOutputSampleFileName,
  182 + self.assertTrue(filecmp.cmp(test_testOutputSampleFileName,
180 183 self.outputSampleFileName,
181 184 shallow=False), msg="Output sample files don't match")
182 185  
... ...