From 0cf8688823017c03101b58a1dd1507c328571a86 Mon Sep 17 00:00:00 2001 From: Benjamin Jakimow <benjamin.jakimow@geo.hu-berlin.de> Date: Tue, 5 Jun 2018 09:33:47 +0200 Subject: [PATCH] refactoring --- test/test_spectrallibraries.py | 3 ++- test/test_temporalprofiles.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_spectrallibraries.py b/test/test_spectrallibraries.py index f15a9175..e1938527 100644 --- a/test/test_spectrallibraries.py +++ b/test/test_spectrallibraries.py @@ -409,6 +409,7 @@ class TestInit(unittest.TestCase): p.setCurrentSpectra(cs) self.assertTrue(len(p.speclib()) == len(cs)) + qapp.exec_() def test_plotWidget(self): speclib = self.createSpeclib() @@ -433,7 +434,7 @@ class TestInit(unittest.TestCase): for pdi in pdis: self.assertFalse(pdi.mProfile.id() == fid) - pass + if __name__ == '__main__': diff --git a/test/test_temporalprofiles.py b/test/test_temporalprofiles.py index 8826c958..5070ed59 100644 --- a/test/test_temporalprofiles.py +++ b/test/test_temporalprofiles.py @@ -119,7 +119,7 @@ class testclassUtilityTests(unittest.TestCase): self.assertTrue(os.path.isfile(f)) lyr2 = TemporalProfileLayer(self.TS) - lyr2.from + path = os.path.join(self.dirTmp, 'testsave.csv') writtenFiles = col.saveTemporalProfiles(path) -- GitLab