on xenial help sign in
Improved doc-string explaining snap-decision test and added an exception to catch any unknown device-options.
000d9d0Mirco Müller
tests/autopilot/unity8/shell/tests/__init__.py+2
@@ -66,6 +66,8 @@ def _get_device_emulation_scenarios(devices='All'):
66 return [nexus4]
66 return [nexus4]
67 elif devices == 'Nexus10':
67 elif devices == 'Nexus10':
68 return [nexus10]
68 return [nexus10]
69+ else:
70+ raise RuntimeException('Unrecognized device-option "%s" passed.' % devices)
69 else:
71 else:
70 return [native]
72 return [native]
71
73
tests/autopilot/unity8/shell/tests/test_notifications.py+1−1
@@ -156,7 +156,7 @@ class InteractiveNotificationBase(NotificationsBase):
156 self.assert_notification_action_id_was_called('action_id')
156 self.assert_notification_action_id_was_called('action_id')
157
157
158 def test_sd_incoming_call(self):
158 def test_sd_incoming_call(self):
159− """Snap-decision simulating incoming call."""
159+ """Rejecting a call should make notification expand and offer more options."""
160 self.launch_unity()
160 self.launch_unity()
161 greeter = self.main_window.get_greeter()
161 greeter = self.main_window.get_greeter()
162 greeter.unlock()
162 greeter.unlock()