on xenial help sign in
Update rotation tests to use new helpers.
f46a3c4Richard Huddie
tests/autopilot/unity8/fixture_setup.py+1−1
@@ -150,7 +150,7 @@ class LaunchUnityWithFakeSensors(fixtures.Fixture):
150
150
151 # Wait for the sensors fifo file to be created.
151 # Wait for the sensors fifo file to be created.
152 fifo_path = '/tmp/sensor-fifo-{0}'.format(
152 fifo_path = '/tmp/sensor-fifo-{0}'.format(
153− process_helpers.get_unity_pid())
153+ process_helpers._get_unity_pid())
154 Eventually(Equals(True)).match(
154 Eventually(Equals(True)).match(
155 lambda: os.path.exists(fifo_path))
155 lambda: os.path.exists(fifo_path))
156
156
tests/autopilot/unity8/sensors.py+1−1
@@ -25,7 +25,7 @@ from unity8 import process_helpers
25class FakePlatformSensors:
25class FakePlatformSensors:
26
26
27 def __init__(self, pid=None):
27 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()
29
29
30 def set_orientation(self, action):
30 def set_orientation(self, action):
31 if action == 'top_up':
31 if action == 'top_up':
tests/autopilot/unity8/shell/tests/test_rotation.py+1−1
@@ -84,7 +84,7 @@ class TestRotationWithApp(RotationBase):
84
84
85 unity_with_sensors = fixture_setup.LaunchUnityWithFakeSensors()
85 unity_with_sensors = fixture_setup.LaunchUnityWithFakeSensors()
86 self.useFixture(unity_with_sensors)
86 self.useFixture(unity_with_sensors)
87− process_helpers.unlock_unity(unity_with_sensors.unity_proxy)
87+ process_helpers.unlock_unity()
88 fake_sensors = unity_with_sensors.fake_sensors
88 fake_sensors = unity_with_sensors.fake_sensors
89 o_proxy = unity_with_sensors.main_win.select_single('OrientedShell')
89 o_proxy = unity_with_sensors.main_win.select_single('OrientedShell')
90 self.shell_proxy = unity_with_sensors.main_win.select_single('Shell')
90 self.shell_proxy = unity_with_sensors.main_win.select_single('Shell')