on xenial help sign in
Cleanup
c5baa0aChristopher Lee
tests/autopilot/unity8/shell/tests/__init__.py−1
@@ -77,7 +77,6 @@ class Unity8TestCase(AutopilotTestCase):
77 else:
77 else:
78 self.grid_size = int(self.grid_unit_px / scale_divisor)
78 self.grid_size = int(self.grid_unit_px / scale_divisor)
79 self.patch_environment("GRID_UNIT_PX", str(self.grid_size))
79 self.patch_environment("GRID_UNIT_PX", str(self.grid_size))
80− logger.info(">>> Seting grid size: %s", self.grid_size)
81
80
82 def _geo_larger_than_display(self, width, height):
81 def _geo_larger_than_display(self, width, height):
83 screen = Display.create()
82 screen = Display.create()
tests/autopilot/unity8/shell/tests/test_hud.py+1−1
@@ -11,10 +11,10 @@ from collections import namedtuple
11
11
12from unity8.shell.tests import Unity8TestCase, _get_device_emulation_scenarios
12from unity8.shell.tests import Unity8TestCase, _get_device_emulation_scenarios
13
13
14+from autopilot.display import Display
14from autopilot.input import Touch
15from autopilot.input import Touch
15from testtools.matchers import Equals, MismatchError
16from testtools.matchers import Equals, MismatchError
16from autopilot.matchers import Eventually
17from autopilot.matchers import Eventually
17−from autopilot.display import Display
18from autopilot.platform import model
18from autopilot.platform import model
19
19
20
20
tests/autopilot/unity8/shell/tests/test_lock_screen.py+3−1
@@ -8,7 +8,7 @@
8
8
9from __future__ import absolute_import
9from __future__ import absolute_import
10
10
11−from unity8.shell.tests import Unity8TestCase
11+from unity8.shell.tests import Unity8TestCase, _get_device_emulation_scenarios
12from unity8.shell.tests.helpers import with_lightdm_mock
12from unity8.shell.tests.helpers import with_lightdm_mock
13
13
14from autopilot.matchers import Eventually
14from autopilot.matchers import Eventually
@@ -25,6 +25,8 @@ class TestLockscreen(Unity8TestCase):
25
25
26 """Tests for the lock screen."""
26 """Tests for the lock screen."""
27
27
28+ scenarios = _get_device_emulation_scenarios()
29+
28 @with_lightdm_mock("single-pin")
30 @with_lightdm_mock("single-pin")
29 def test_can_unlock_pin_screen(self):
31 def test_can_unlock_pin_screen(self):
30 """Must be able to unlock the PIN entry lock screen."""
32 """Must be able to unlock the PIN entry lock screen."""