Unity 8
unity8.fixture_setup.LaunchUnityWithFakeSensors Class Reference

Inherits Fixture.

Public Member Functions

def setUp (self)
 

Public Attributes

 fake_sensors
 

Static Public Attributes

 unity_proxy = None
 
 main_win = None
 

Detailed Description

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.

Member Function Documentation

def unity8.fixture_setup.LaunchUnityWithFakeSensors.setUp (   self)
Restart Unity8 with testability and create sensors.

Definition at line 57 of file fixture_setup.py.

57  def setUp(self):
58  """Restart Unity8 with testability and create sensors."""
59  super().setUp()
60  self.useFixture(
61  fixture_setup.InitctlEnvironmentVariable(
62  UBUNTU_PLATFORM_API_TEST_OVERRIDE='sensors'))
63 
64  self.addCleanup(process_helpers.stop_job, 'unity8')
65  restart_thread = threading.Thread(
67  restart_thread.start()
68 
69  self._create_sensors()
70 
71  restart_thread.join()
72  self.fake_sensors = sensors.FakePlatformSensors()
73 

The documentation for this class was generated from the following file: