on xenial help sign in
Seems to work.
3f5d08fThomi Richards
tests/autopilot/unity8/shell/tests/__init__.py+3−4
@@ -31,13 +31,12 @@ class Unity8TestCase(AutopilotTestCase):
31
31
32 """A sane test case base class for the Unity8 shell tests."""
32 """A sane test case base class for the Unity8 shell tests."""
33
33
34− # The lightdm mock we want to load. Options seem to be "full", "single-pin",
35− # "single-passphrase" or "single-key".
36− lightdm_mock = "full"
37−
38 def setUp(self):
34 def setUp(self):
39 super(Unity8TestCase, self).setUp()
35 super(Unity8TestCase, self).setUp()
40 self._proxy = None
36 self._proxy = None
37+ # The lightdm mock we want to load. Options seem to be "full", "single-pin",
38+ # "single-passphrase" or "single-key".
39+ self.lightdm_mock = "full"
41
40
42 def launch_unity(self):
41 def launch_unity(self):
43 """Launch the unity8 shell, return a proxy object for it."""
42 """Launch the unity8 shell, return a proxy object for it."""
tests/autopilot/unity8/shell/tests/test_lock_screen.py+2
@@ -64,7 +64,9 @@ class TestLockscreen(Unity8TestCase):
64
64
65 def test_can_unlock_screen(self):
65 def test_can_unlock_screen(self):
66 """Must be able to unlock the screen."""
66 """Must be able to unlock the screen."""
67+ self.lightdm_mock = "single_pin"
67 self.app = self.launch_unity()
68 self.app = self.launch_unity()
69+ time.sleep(30)
68
70
69 # def test_unlock(self):
71 # def test_unlock(self):
70 # self.unlock_greeter()
72 # self.unlock_greeter()