def test_change_prefs_dialog_saves_prefs(dlg_result, saved, mocker):
    Dlg = mocker.patch('mozregui.global_prefs.ChangePrefsDialog')
    dlg = Mock()
    Dlg.return_value = dlg
    dlg.exec_.return_value = dlg_result

    global_prefs.change_prefs_dialog()
    assert dlg.save_prefs.called == saved
Ejemplo n.º 2
0
 def edit_global_prefs(self):
     change_prefs_dialog(self)
Ejemplo n.º 3
0
 def edit_global_prefs(self):
     change_prefs_dialog(self)