on xenial help sign in
SkipIf the setUp for Desktop instead of test itself.
a3474adAllan LeSage
tests/autopilot/unity8/indicators/tests/test_indicators.py+4−2
@@ -37,10 +37,12 @@ class IndicatorTestCase(UnityTestCase):
37 ('Sound', dict(indicator_name='indicator-sound')),
37 ('Sound', dict(indicator_name='indicator-sound')),
38 ]
38 ]
39
39
40− @skipIf(platform.image_codename()=='Desktop', "phablet-only test")
40+ @skipIf(platform.image_codename()=='Desktop', "Unity8/phablet-only test!")
41+ def setUp(self):
42+ super(UnityTestCase, self).setUp()
43+
41 def test_indicator_exists(self):
44 def test_indicator_exists(self):
42 """The tab of a given indicator can be found."""
45 """The tab of a given indicator can be found."""
43−
44 self.launch_unity()
46 self.launch_unity()
45 self.main_window.get_greeter().swipe()
47 self.main_window.get_greeter().swipe()
46 indicator = self.main_window.get_indicator(self.indicator_name)
48 indicator = self.main_window.get_indicator(self.indicator_name)