def test_changing_timer_with_messages_shown(qtbot, view, config_stub):
 config_stub['ui']['message-timeout'] = 900000
 view.show_message(usertypes.MessageLevel.info, 'test')
 with qtbot.waitSignal(view._clear_timer.timeout):
  config_stub.set('ui', 'message-timeout', 100)

def test_changing_timer_with_messages_shown ( qtbot , view , config_stub ) : config_stub [ 'ui' ] [ 'message-timeout' ] = 900000 view . show_message ( usertypes . MessageLevel . info , 'test' ) with qtbot . waitSignal ( view . _clear_timer . timeout ) : config_stub . set ( 'ui' , 'message-timeout' , 100 )
when we change ui -> message-timeout .