on xenial help sign in
Update rotation tests to use new helpers.
commitf46a3c43aa7d7d42b4bd15ea687ba1c5046584bc authorRichard Huddie <richard.huddie@canonical.com> dateTue 23 Jun 2015, 10:37 (11 years ago) parent2913839
3 files changed+3−3
tests/autopilot/unity8/fixture_setup.py+1−1 tests/autopilot/unity8/sensors.py+1−1 tests/autopilot/unity8/shell/tests/test_rotation.py+1−1
tests/autopilot/unity8/fixture_setup.py+1−1
@@ -150,7 +150,7 @@ class LaunchUnityWithFakeSensors(fixtures.Fixture):
150150
151151 # Wait for the sensors fifo file to be created.
152152 fifo_path = '/tmp/sensor-fifo-{0}'.format(
153− process_helpers.get_unity_pid())
153+ process_helpers._get_unity_pid())
154154 Eventually(Equals(True)).match(
155155 lambda: os.path.exists(fifo_path))
156156
tests/autopilot/unity8/sensors.py+1−1
@@ -25,7 +25,7 @@ from unity8 import process_helpers
2525class FakePlatformSensors:
2626
2727 def __init__(self, pid=None):
28− self.pid = pid or process_helpers.get_unity_pid()
28+ self.pid = pid or process_helpers._get_unity_pid()
2929
3030 def set_orientation(self, action):
3131 if action == 'top_up':
tests/autopilot/unity8/shell/tests/test_rotation.py+1−1
@@ -84,7 +84,7 @@ class TestRotationWithApp(RotationBase):
8484
8585 unity_with_sensors = fixture_setup.LaunchUnityWithFakeSensors()
8686 self.useFixture(unity_with_sensors)
87− process_helpers.unlock_unity(unity_with_sensors.unity_proxy)
87+ process_helpers.unlock_unity()
8888 fake_sensors = unity_with_sensors.fake_sensors
8989 o_proxy = unity_with_sensors.main_win.select_single('OrientedShell')
9090 self.shell_proxy = unity_with_sensors.main_win.select_single('Shell')