Inherits Fixture.
|
| unity_proxy = None |
|
| main_win = None |
|
Fixture to launch Unity8 with an injectable sensors backend.
:ivar unity_proxy: The Autopilot proxy object for the Unity shell.
Definition at line 46 of file fixture_setup.py.
§ setUp()
def unity8.fixture_setup.LaunchUnityWithFakeSensors.setUp |
( |
|
self | ) |
|
Restart Unity8 with testability and create sensors.
Definition at line 57 of file fixture_setup.py.
58 """Restart Unity8 with testability and create sensors.""" 61 fixture_setup.InitctlEnvironmentVariable(
62 UBUNTU_PLATFORM_API_TEST_OVERRIDE=
'sensors'))
64 self.addCleanup(process_helpers.stop_job,
'unity8')
65 restart_thread = threading.Thread(
66 target=self._restart_unity_with_testability)
67 restart_thread.start()
69 self._create_sensors()
72 self.fake_sensors = sensors.FakePlatformSensors()
The documentation for this class was generated from the following file: