mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-11 05:17:59 +03:00
uitests: Finish error.py coverage
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
4b4f2ddba3
commit
5ecacfdfed
@ -103,6 +103,12 @@ class UITestCase(unittest.TestCase):
|
||||
alert.find(button_text, "push button").click()
|
||||
check_in_loop(lambda: not alert.active)
|
||||
|
||||
def _select_storagebrowser_volume(self, pool, vol):
|
||||
browsewin = self.app.root.find("vmm-storage-browser")
|
||||
browsewin.find_fuzzy(pool, "table cell").click()
|
||||
browsewin.find_fuzzy(vol, "table cell").click()
|
||||
browsewin.find_fuzzy("Choose Volume").click()
|
||||
|
||||
def _walkUIList(self, win, lst, error_cb, reverse=False):
|
||||
"""
|
||||
Toggle down through a UI list like addhardware, net/storage/iface
|
||||
|
@ -69,7 +69,7 @@ class vmmErrorDialog(vmmGObject):
|
||||
self._modal_default = False
|
||||
|
||||
def _cleanup(self):
|
||||
pass
|
||||
pass # pragma: no cover
|
||||
|
||||
def set_modal_default(self, val):
|
||||
self._modal_default = val
|
||||
@ -251,9 +251,8 @@ class vmmErrorDialog(vmmGObject):
|
||||
|
||||
# Initial setup
|
||||
overwrite_confirm = False
|
||||
dialog_type = dialog_type or Gtk.FileChooserAction.OPEN
|
||||
|
||||
if dialog_type is None:
|
||||
dialog_type = Gtk.FileChooserAction.OPEN
|
||||
if dialog_type == Gtk.FileChooserAction.SAVE:
|
||||
if choose_button is None:
|
||||
choose_button = Gtk.STOCK_SAVE
|
||||
@ -377,7 +376,7 @@ class _errorDialog (Gtk.MessageDialog):
|
||||
self.hide()
|
||||
self.buf_expander.hide()
|
||||
for c in self.chk_vbox.get_children():
|
||||
self.chk_vbox.remove(c)
|
||||
self.chk_vbox.remove(c) # pragma: no cover
|
||||
|
||||
if details:
|
||||
self.buffer.set_text(details)
|
||||
|
Loading…
Reference in New Issue
Block a user