traitsui.tests.editors.test_range_editor_spinner module

Test case for bug (wx, Mac OS X)

Editing the text part of a spin control box and pressing the OK button without de-focusing raises an AttributeError:

Traceback (most recent call last):
File "ETS/traitsui/traitsui/wx/range_editor.py", line 783, in update_object
    self.value = self.control.GetValue()
AttributeError: 'NoneType' object has no attribute 'GetValue'
class traitsui.tests.editors.test_range_editor_spinner.NumberWithSpinnerEditor

Bases: traits.has_traits.HasTraits

Dialog containing a RangeEditor in ‘spinner’ mode for an Int.

traitsui.tests.editors.test_range_editor_spinner.is_current_backend_null(*, backend_name='null')
traitsui.tests.editors.test_range_editor_spinner.is_current_backend_qt4(*, backend_name='qt4')
traitsui.tests.editors.test_range_editor_spinner.is_current_backend_wx(*, backend_name='wx')
traitsui.tests.editors.test_range_editor_spinner.skip_if_not_null(item, *, backend_name='null')

Decorator that skip tests if the backend is not the desired one.

traitsui.tests.editors.test_range_editor_spinner.skip_if_not_qt4(item, *, backend_name='qt4')

Decorator that skip tests if the backend is not the desired one.

traitsui.tests.editors.test_range_editor_spinner.skip_if_not_wx(item, *, backend_name='wx')

Decorator that skip tests if the backend is not the desired one.

traitsui.tests.editors.test_range_editor_spinner.test_qt_spin_control_editing()
traitsui.tests.editors.test_range_editor_spinner.test_wx_spin_control_editing_does_not_update()
traitsui.tests.editors.test_range_editor_spinner.test_wx_spin_control_editing_should_not_crash()