Inherits fixtures.Fixture.
|
| lomiri_proxy = None |
|
| main_win = None |
|
Fixture to launch Lomiri with an injectable sensors backend.
:ivar lomiri_proxy: The Autopilot proxy object for the Lomiri shell.
Definition at line 46 of file fixture_setup.py.
◆ setUp()
def lomiri.fixture_setup.LaunchLomiriWithFakeSensors.setUp |
( |
|
self | ) |
|
Restart Lomiri with testability and create sensors.
Definition at line 57 of file fixture_setup.py.
58 """Restart Lomiri with testability and create sensors."""
61 fixture_setup.InitctlEnvironmentVariable(
62 LOMIRI_PLATFORM_API_TEST_OVERRIDE=
'sensors'))
64 self.addCleanup(process_helpers.stop_job,
'lomiri')
65 restart_thread = threading.Thread(
66 target=self._restart_lomiri_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: