diff options
author | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2020-08-03 19:24:39 +0200 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr> | 2020-08-03 19:24:39 +0200 |
commit | 5ad425ff4e62f5e003178813ebd073577679a00e (patch) | |
tree | c01308b15480effdc3749909c1ce3a012ed2a82f /silx/gui/dialog/test/test_colormapdialog.py | |
parent | 328032e2317e3ac4859196bbf12bdb71795302fe (diff) |
New upstream version 0.13.1+dfsg
Diffstat (limited to 'silx/gui/dialog/test/test_colormapdialog.py')
-rw-r--r-- | silx/gui/dialog/test/test_colormapdialog.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/silx/gui/dialog/test/test_colormapdialog.py b/silx/gui/dialog/test/test_colormapdialog.py index 8efe8bc..61e6365 100644 --- a/silx/gui/dialog/test/test_colormapdialog.py +++ b/silx/gui/dialog/test/test_colormapdialog.py @@ -99,9 +99,9 @@ class TestColormapDialog(TestCaseQt, ParametricTestCase): self.qapp.processEvents() self.colormapDiag.setColormap(self.colormap) self.assertTrue(self.colormap.getVMin() is not None) - self.colormapDiag._minValue.setValue(None) + self.colormapDiag._minValue.sigAutoScaleChanged.emit(True) self.assertTrue(self.colormap.getVMin() is None) - self.colormapDiag._maxValue.setValue(None) + self.colormapDiag._maxValue.sigAutoScaleChanged.emit(True) self.mouseClick( widget=self.colormapDiag._buttonsModal.button(qt.QDialogButtonBox.Ok), button=qt.Qt.LeftButton @@ -118,7 +118,7 @@ class TestColormapDialog(TestCaseQt, ParametricTestCase): self.qapp.processEvents() self.colormapDiag.setColormap(self.colormap) self.assertTrue(self.colormap.getVMin() is not None) - self.colormapDiag._minValue.setValue(None) + self.colormapDiag._minValue.sigAutoScaleChanged.emit(True) self.assertTrue(self.colormap.getVMin() is None) self.mouseClick( widget=self.colormapDiag._buttonsModal.button(qt.QDialogButtonBox.Cancel), @@ -133,7 +133,7 @@ class TestColormapDialog(TestCaseQt, ParametricTestCase): self.qapp.processEvents() self.colormapDiag.setColormap(self.colormap) self.assertTrue(self.colormap.getVMin() is not None) - self.colormapDiag._minValue.setValue(None) + self.colormapDiag._minValue.sigAutoScaleChanged.emit(True) self.assertTrue(self.colormap.getVMin() is None) self.mouseClick( widget=self.colormapDiag._buttonsNonModal.button(qt.QDialogButtonBox.Close), @@ -148,7 +148,7 @@ class TestColormapDialog(TestCaseQt, ParametricTestCase): self.qapp.processEvents() self.colormapDiag.setColormap(self.colormap) self.assertTrue(self.colormap.getVMin() is not None) - self.colormapDiag._minValue.setValue(None) + self.colormapDiag._minValue.sigAutoScaleChanged.emit(True) self.assertTrue(self.colormap.getVMin() is None) self.mouseClick( widget=self.colormapDiag._buttonsNonModal.button(qt.QDialogButtonBox.Reset), @@ -164,7 +164,7 @@ class TestColormapDialog(TestCaseQt, ParametricTestCase): self.qapp.processEvents() self.colormapDiag.setColormap(self.colormap) self.assertTrue(self.colormap.getVMin() is not None) - self.colormapDiag._minValue.setValue(None) + self.colormapDiag._minValue.sigAutoScaleChanged.emit(True) self.assertTrue(self.colormap.getVMin() is None) self.colormapDiag.close() self.qapp.processEvents() |