@@ -31,7 +31,6 @@ from ubuntuuitoolkit import (
3131)
3232
3333from unity8.application_lifecycle import tests
34−from unity8.process_helpers import unlock_unity
3534from unity8.shell import disable_qml_mocking
3635from unity8.shell.tests import _get_device_emulation_scenarios
3736
@@ -44,12 +43,9 @@ class ApplicationLifecycleTests(tests.ApplicationLifeCycleTestCase):
4443 scenarios = _get_device_emulation_scenarios()
4544
4645 def setUp(self):
46+ if model() == 'Desktop':
47+ self.skipTest('Test cannot be run on the desktop.')
4748 super(ApplicationLifecycleTests, self).setUp()
48− if model() == "Desktop":
49− self.skipTest("Test cannot be run on the desktop.")
50−
51− unity_proxy = self.launch_unity()
52− unlock_unity(unity_proxy)
5349
5450 def swipe_screen_from_right(self):
5551 width = self.main_window.width
@@ -75,13 +71,11 @@ class ApplicationLifecycleTests(tests.ApplicationLifeCycleTestCase):
7571 app_type='qt')
7672 return application_name
7773
78− @disable_qml_mocking
7974 def test_can_launch_application(self):
8075 """Must be able to launch an application."""
8176 application_name = self.launch_fake_app()
8277 self.assert_current_focused_application(application_name)
8378
84− @disable_qml_mocking
8579 def test_can_launch_multiple_applications(self):
8680 """A second application launched must be focused."""
8781 application1_name = self.launch_fake_app()
@@ -91,7 +85,6 @@ class ApplicationLifecycleTests(tests.ApplicationLifeCycleTestCase):
9185 self.assertFalse(application1_name == application2_name)
9286 self.assert_current_focused_application(application2_name)
9387
94− @disable_qml_mocking
9588 def test_app_moves_from_unfocused_to_focused(self):
9689 """An application that is in the unfocused state must be able to be
9790 brought back to the focused state.