diff options
author | Picca Frédéric-Emmanuel <picca@debian.org> | 2018-03-04 10:20:27 +0100 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@debian.org> | 2018-03-04 10:20:27 +0100 |
commit | 270d5ddc31c26b62379e3caa9044dd75ccc71847 (patch) | |
tree | 55c5bfc851dfce7172d335cd2405b214323e3caf /silx/gui/plot/test/testScatterMaskToolsWidget.py | |
parent | e19c96eff0c310c06c4f268c8b80cb33bd08996f (diff) |
New upstream version 0.7.0+dfsg
Diffstat (limited to 'silx/gui/plot/test/testScatterMaskToolsWidget.py')
-rw-r--r-- | silx/gui/plot/test/testScatterMaskToolsWidget.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/silx/gui/plot/test/testScatterMaskToolsWidget.py b/silx/gui/plot/test/testScatterMaskToolsWidget.py index 178274a..0342c8f 100644 --- a/silx/gui/plot/test/testScatterMaskToolsWidget.py +++ b/silx/gui/plot/test/testScatterMaskToolsWidget.py @@ -26,7 +26,7 @@ __authors__ = ["T. Vincent", "P. Knobel"] __license__ = "MIT" -__date__ = "01/09/2017" +__date__ = "17/01/2018" import logging @@ -36,7 +36,8 @@ import unittest import numpy from silx.gui import qt -from silx.test.utils import temp_dir, ParametricTestCase +from silx.test.utils import temp_dir +from silx.utils.testutils import ParametricTestCase from silx.gui.test.utils import getQToolButtonFromAction from silx.gui.plot import PlotWindow, ScatterMaskToolsWidget from .utils import PlotWidgetTestCase @@ -86,8 +87,10 @@ class TestScatterMaskToolsWidget(PlotWidgetTestCase, ParametricTestCase): pos0 = xCenter, yCenter pos1 = xCenter + offset, yCenter + offset + self.mouseMove(plot, pos=(0, 0)) self.mouseMove(plot, pos=pos0) self.mousePress(plot, qt.Qt.LeftButton, pos=pos0) + self.mouseMove(plot, pos=(0, 0)) self.mouseMove(plot, pos=pos1) self.mouseRelease(plot, qt.Qt.LeftButton, pos=pos1) @@ -197,7 +200,7 @@ class TestScatterMaskToolsWidget(PlotWidgetTestCase, ParametricTestCase): self.assertIsNot(toolButton, None) self.mouseClick(toolButton, qt.Qt.LeftButton) - self.maskWidget.pencilSpinBox.setValue(10) + self.maskWidget.pencilSpinBox.setValue(30) self.qapp.processEvents() # mask |