Commit 751a57a2 authored by payno's avatar payno Committed by Henri Payno
Browse files

[test] fix typo _dockWidgetWidget -> _controlWidget

# Conflicts:
#	orangecontrib/tomwer/widgets/reconstruction/test/test_axis.py
parent 58737d85
......@@ -66,15 +66,15 @@ class TestOWAxis(TestCaseQt):
assert self._window.getAxis().mode in (AxisMode.centered, AxisMode.global_)
radio_axis = self._window._widget._axisWidget._radioAxis
main_widget = self._window._widget._axisWidget
self.assertFalse(main_widget._dockWidgetWidget._lockBut.isLocked())
self.assertTrue(radio_axis._dockWidgetWidget._mainWidget.isEnabled())
self.mouseClick(main_widget._dockWidgetWidget._lockBut, qt.Qt.LeftButton)
self.assertFalse(main_widget._controlWidget._lockBut.isLocked())
self.assertTrue(radio_axis._controlWidget._mainWidget.isEnabled())
self.mouseClick(main_widget._controlWidget._lockBut, qt.Qt.LeftButton)
self.qapp.processEvents()
self.assertTrue(main_widget._dockWidgetWidget._lockBut.isLocked())
self.assertTrue(main_widget._controlWidget._lockBut.isLocked())
# when the lock button is activated we should automatically switch to
# the manual mode
self.assertTrue(self._window.getAxis().mode is AxisMode.manual)
self.assertFalse(radio_axis._dockWidgetWidget._mainWidget.isEnabled())
self.assertFalse(radio_axis._controlWidget._mainWidget.isEnabled())
class TestWindowAxisComputation(TestCaseQt):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment