Add mouse back button to click test.

This commit is contained in:
pkill9 2017-03-25 21:16:51 +00:00
parent 5e1c530d71
commit 13677d3563

View File

@ -132,3 +132,8 @@ def test_click_messages(qtbot, view):
view.show_message(usertypes.MessageLevel.info, 'test mouse right click')
QTest.mousePress(view, Qt.RightButton)
assert not view._messages
# Test mouse back button - This shouldn't clear messages.
view.show_message(usertypes.MessageLevel.info, 'test mouse back button')
QTest.mousePress(view, Qt.BackButton)
assert len(view._messages) == 1