Skip to content
Snippets Groups Projects
Commit 8e84dd2a authored by payno's avatar payno
Browse files

[gui][test_datawatcher] fix test since use a TomoBase and not a path to the acquisition

parent 33f56d9f
No related branches found
No related tags found
No related merge requests found
......@@ -172,8 +172,8 @@ class _ObservationCounter(qt.QObject):
def add(self, scanID):
self.scansCounted = self.scansCounted + 1
if scanID not in self.scansID:
self.scansID.append(scanID)
if scanID.path not in self.scansID:
self.scansID.append(scanID.path)
def getReceivedScan(self):
return self.scansCounted
......@@ -217,7 +217,6 @@ class TestTomoDir(TestCaseQt):
def tearDown(self):
self.tomodir.stop()
self.observationCounter.clear()
self.tomodir = None
if os.path.isdir(self.observeFolder):
shutil.rmtree(self.observeFolder)
......@@ -229,6 +228,8 @@ class TestTomoDir(TestCaseQt):
existing we will found only those two observations once and that the
tomodir object is still observing
"""
self.observationCounter.clear()
self.tomodir.start()
self.qapp.processEvents()
time.sleep(self.WAIT_BTW_LOOP * 2.0) # make sure no multiple signal are emitted
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment