on xenial help sign in
Merged with prerequisite.
commitfa5edf76709cd379697cb2cd97e18397b02d04c3 authorLeo Arias <leo.arias@canonical.com> dateMon 20 Apr 2015, 11:18 (11 years ago) parentc56e1907909dbe
4 files changed+8−7
tests/autopilot/unity8/greeter/tests/__init__.py+2−2 tests/autopilot/unity8/indicators/__init__.py+3−3 tests/autopilot/unity8/shell/emulators/dash.py+2−2 tests/autopilot/unity8/shell/tests/test_tutorial.py+1
tests/autopilot/unity8/greeter/tests/__init__.py+2−2
@@ -23,6 +23,6 @@ from unity8.shell.tests import UnityTestCase
2323
2424class GreeterTestCase(UnityTestCase):
2525 def get_shell(self, unity_proxy):
26− main_window = \
27− unity_proxy.select_single(main_window_emulator.QQuickView)
26+ main_window = (
27+ unity_proxy.select_single(main_window_emulator.QQuickView))
2828 return main_window.select_single('Shell')
tests/autopilot/unity8/indicators/__init__.py+3−3
@@ -67,9 +67,9 @@ class Indicator():
6767 objectName=self._name+'-page')
6868
6969 def _make_indicator_icon_visible(self):
70− indicators_bar_flickable = self._main_window.select_single(
71− 'IndicatorsBar').select_single(
72− ubuntuuitoolkit.QQuickFlickable, objectName='flickable')
70+ indicators_bar = self._main_window.select_single('IndicatorsBar')
71+ indicators_bar_flickable = indicators_bar.select_single(
72+ ubuntuuitoolkit.QQuickFlickable, objectName='flickable')
7373 self._swipe_flickable_to_x_end(indicators_bar_flickable)
7474
7575 def _swipe_flickable_to_x_end(self, flickable):
tests/autopilot/unity8/shell/emulators/dash.py+2−2
@@ -168,8 +168,8 @@ class Dash(emulators.UnityEmulatorBase):
168168 headerContainer.contentY.wait_for(0)
169169 search_text_field = self._get_search_text_field()
170170 search_text_field.write(query)
171− self.select_single(objectName="processingIndicator")\
172− .visible.wait_for(False)
171+ self.select_single(
172+ objectName="processingIndicator").visible.wait_for(False)
173173
174174 def _get_search_text_field(self):
175175 page_header = self._get_current_page_header()
tests/autopilot/unity8/shell/tests/test_tutorial.py+1
@@ -25,6 +25,7 @@ from unity8.shell import (
2525 tests
2626)
2727# unused import to load the tutorial emulators custom proxy objects.
28+from unity8.shell.emulators import tutorial as tutorial_emulator # NOQA
2829
2930
3031class TutorialTestCase(tests.UnityTestCase):