on xenial help sign in
Fix unlock unity in fake sensors test and remove duplicated test.
6dea74cRichard Huddie
tests/autopilot/unity8/shell/tests/test_helpers.py−6
@@ -125,12 +125,6 @@ class GenericScopeViewEmulatorTestCase(tests.DashBaseTestCase):
125 self.assertIsInstance(preview, dash_helpers.Preview)
125 self.assertIsInstance(preview, dash_helpers.Preview)
126 self.assertTrue(preview.isCurrent)
126 self.assertTrue(preview.isCurrent)
127
127
128− def test_open_preview_of_non_visible_item(self):
129− """Open an item that requires swiping to make it visible."""
130− preview = self.generic_scope.open_preview('2', 'Title.2.0')
131− self.assertIsInstance(preview, dash_emulators.Preview)
132− self.assertTrue(preview.isCurrent)
133−
134
128
135class DashAppsEmulatorTestCase(tests.DashBaseTestCase):
129class DashAppsEmulatorTestCase(tests.DashBaseTestCase):
136
130
tests/autopilot/unity8/shell/tests/test_rotation.py+1−1
@@ -58,7 +58,7 @@ class TestFakeSensor(RotationBase):
58 def test_fake_sensor(self):
58 def test_fake_sensor(self):
59 unity_with_sensors = fixture_setup.LaunchUnityWithFakeSensors()
59 unity_with_sensors = fixture_setup.LaunchUnityWithFakeSensors()
60 self.useFixture(unity_with_sensors)
60 self.useFixture(unity_with_sensors)
61− process_helpers.unlock_unity(unity_with_sensors.unity_proxy)
61+ process_helpers.unlock_unity()
62 fake_sensors = unity_with_sensors.fake_sensors
62 fake_sensors = unity_with_sensors.fake_sensors
63 o_proxy = unity_with_sensors.main_win.select_single('OrientedShell')
63 o_proxy = unity_with_sensors.main_win.select_single('OrientedShell')
64
64