Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tomwer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Olof Svensson
tomwer
Commits
8e84dd2a
Commit
8e84dd2a
authored
5 years ago
by
payno
Browse files
Options
Downloads
Patches
Plain Diff
[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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tomwer/gui/test/test_datawatcher.py
+4
-3
4 additions, 3 deletions
tomwer/gui/test/test_datawatcher.py
with
4 additions
and
3 deletions
tomwer/gui/test/test_datawatcher.py
+
4
−
3
View file @
8e84dd2a
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment