Unity 8
unity8.fixture_setup.RestartUnityWithTestability Class Reference

Inherits Fixture.

Public Member Functions

def __init__ (self, binary_path, variables)
 
def setUp (self)
 
def restart_unity (self)
 
def restart_unity_with_testability (self)
 
def stop_unity (self)
 

Public Attributes

 binary_path
 
 variables
 

Static Public Attributes

 unity_proxy = None
 

Detailed Description

Fixture to launch Unity8 with testability.

:ivar unity_proxy: The Autopilot proxy object for the Unity shell.

Definition at line 155 of file fixture_setup.py.

Constructor & Destructor Documentation

def unity8.fixture_setup.RestartUnityWithTestability.__init__ (   self,
  binary_path,
  variables 
)
Initialize the fixture instance.

:param str binary_path: The path to the Dash app binary.
:param cli_arguments: The arguments to pass when launching the
:param variables: The variables to use when launching the app.
:type variables: A dictionary.

Definition at line 165 of file fixture_setup.py.

165  def __init__(self, binary_path, variables):
166  """Initialize the fixture instance.
167 
168  :param str binary_path: The path to the Dash app binary.
169  :param cli_arguments: The arguments to pass when launching the
170  :param variables: The variables to use when launching the app.
171  :type variables: A dictionary.
172 
173  """
174  super().__init__()
175  self.binary_path = binary_path
176  self.variables = variables
177 
def __init__(self, binary_path, variables)

Member Function Documentation

def unity8.fixture_setup.RestartUnityWithTestability.setUp (   self)
Restart unity with testability when the fixture is used.

Definition at line 178 of file fixture_setup.py.

178  def setUp(self):
179  """Restart unity with testability when the fixture is used."""
180  super().setUp()
181  self.addCleanup(self.stop_unity)
182  self.restart_unity()
183 

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