mirror of
https://github.com/virt-manager/virt-manager.git
synced 2026-08-13 06:24:59 -05:00
uitests: Split out UITestCase class
This commit is contained in:
@@ -1,19 +1,12 @@
|
||||
import time
|
||||
import unittest
|
||||
|
||||
import tests
|
||||
from tests.uitests import utils as uiutils
|
||||
|
||||
|
||||
class VMMCLI(unittest.TestCase):
|
||||
class VMMCLI(uiutils.UITestCase):
|
||||
"""
|
||||
UI tests for virt-manager's command line --show options
|
||||
"""
|
||||
def setUp(self):
|
||||
self.app = uiutils.DogtailApp(tests.utils.uri_test)
|
||||
def tearDown(self):
|
||||
self.app.kill()
|
||||
|
||||
|
||||
##############
|
||||
# Test cases #
|
||||
|
||||
@@ -1,20 +1,13 @@
|
||||
import time
|
||||
import unittest
|
||||
|
||||
import tests
|
||||
from tests.uitests import utils as uiutils
|
||||
|
||||
|
||||
|
||||
class CloneVM(unittest.TestCase):
|
||||
class CloneVM(uiutils.UITestCase):
|
||||
"""
|
||||
UI tests for virt-manager's CloneVM wizard
|
||||
"""
|
||||
def setUp(self):
|
||||
self.app = uiutils.DogtailApp(tests.utils.uri_test)
|
||||
def tearDown(self):
|
||||
self.app.kill()
|
||||
|
||||
|
||||
###################
|
||||
# Private helpers #
|
||||
|
||||
@@ -1,22 +1,15 @@
|
||||
import time
|
||||
import unittest
|
||||
|
||||
import dogtail.rawinput
|
||||
import pyatspi
|
||||
|
||||
import tests
|
||||
from tests.uitests import utils as uiutils
|
||||
|
||||
|
||||
class Details(unittest.TestCase):
|
||||
class Details(uiutils.UITestCase):
|
||||
"""
|
||||
UI tests for virt-manager's VM details window
|
||||
"""
|
||||
def setUp(self):
|
||||
self.app = uiutils.DogtailApp(tests.utils.uri_test)
|
||||
def tearDown(self):
|
||||
self.app.kill()
|
||||
|
||||
|
||||
###################
|
||||
# Private helpers #
|
||||
|
||||
@@ -1,22 +1,15 @@
|
||||
import time
|
||||
import unittest
|
||||
|
||||
import dogtail.rawinput
|
||||
import pyatspi
|
||||
|
||||
import tests
|
||||
from tests.uitests import utils as uiutils
|
||||
|
||||
|
||||
class Host(unittest.TestCase):
|
||||
class Host(uiutils.UITestCase):
|
||||
"""
|
||||
UI tests for virt-manager's VM details window
|
||||
"""
|
||||
def setUp(self):
|
||||
self.app = uiutils.DogtailApp(tests.utils.uri_test)
|
||||
def tearDown(self):
|
||||
self.app.kill()
|
||||
|
||||
|
||||
###################
|
||||
# Private helpers #
|
||||
|
||||
@@ -1,19 +1,14 @@
|
||||
import time
|
||||
import unittest
|
||||
|
||||
import tests
|
||||
from tests.uitests import utils as uiutils
|
||||
|
||||
|
||||
|
||||
class NewVM(unittest.TestCase):
|
||||
class NewVM(uiutils.UITestCase):
|
||||
"""
|
||||
UI tests for virt-manager's NewVM wizard
|
||||
"""
|
||||
def setUp(self):
|
||||
self.app = uiutils.DogtailApp(tests.utils.uri_test)
|
||||
def tearDown(self):
|
||||
self.app.kill()
|
||||
|
||||
|
||||
###################
|
||||
|
||||
@@ -3,6 +3,7 @@ from __future__ import print_function
|
||||
import os
|
||||
import re
|
||||
import time
|
||||
import unittest
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
@@ -10,6 +11,13 @@ import tests
|
||||
import dogtail.tree
|
||||
|
||||
|
||||
class UITestCase(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.app = DogtailApp(tests.utils.uri_test)
|
||||
def tearDown(self):
|
||||
self.app.kill()
|
||||
|
||||
|
||||
class _FuzzyPredicate(dogtail.predicate.Predicate):
|
||||
"""
|
||||
Object dogtail/pyatspi want for node searching.
|
||||
|
||||
Reference in New Issue
Block a user