on xenial help sign in
Autopilot: Style fixes
534d489Victor R. Ruiz
tests/autopilot/unity8/shell/__init__.py+7−8
@@ -82,14 +82,13 @@ def create_ephemeral_notification(
82):
82):
83 """Create an ephemeral (non-interactive) notification
83 """Create an ephemeral (non-interactive) notification
84
84
85− :param summary: Summary text for the notification
85+ :param summary: Summary text for the notification
86− :param body: Body text to display in the notification
86+ :param body: Body text to display in the notification
87− :param icon: Path string to the icon to use
87+ :param icon: Path string to the icon to use
88− :param hint_strings: List of tuples containing the 'name' and value
88+ :param hint_strings: List of tuples containing the 'name' and value
89− for setting the hint strings for the notification
89+ for setting the hint strings for the notification
90− :param urgency: Urgency string for the noticiation, either: 'LOW',
90+ :param urgency: Urgency string for the noticiation, either: 'LOW',
91− 'NORMAL', 'CRITICAL'
91+ 'NORMAL', 'CRITICAL'
92−
93 """
92 """
94 Notify.init('Unity8')
93 Notify.init('Unity8')
95
94
tests/autopilot/unity8/shell/tests/test_notifications.py+2−2
@@ -65,8 +65,8 @@ class NotificationsBase(UnityTestCase):
65 if os.path.abspath(__file__).startswith('/usr/'):
65 if os.path.abspath(__file__).startswith('/usr/'):
66 return '/usr/share/unity8/graphics/' + icon_name
66 return '/usr/share/unity8/graphics/' + icon_name
67 else:
67 else:
68− return os.path.dirname(__file__) + \
68+ return os.path.dirname(__file__) + (
69− "/../../../../../qml/graphics/" + icon_name
69+ "/../../../../../qml/graphics/" + icon_name)
70
70
71 def _get_notifications_list(self):
71 def _get_notifications_list(self):
72 return self.main_window.select_single(
72 return self.main_window.select_single(