|
def | setUpClass (cls) |
|
def | setUp (self) |
|
def | launch_unity (self, mode="full-greeter", args) |
|
def | patch_lightdm_mock (self) |
|
def | wait_for_unity (self) |
|
def | get_dash (self) |
|
def | main_window (self) |
|
|
| unity_geometry_args |
|
| grid_size |
|
A test case base class for the Unity shell tests.
Definition at line 88 of file __init__.py.
◆ launch_unity()
def unity8.shell.tests.UnityTestCase.launch_unity |
( |
|
self, |
|
|
|
mode = "full-greeter" , |
|
|
|
args |
|
) |
| |
Launch the unity shell, return a proxy object for it.
:param str mode: The type of greeter/shell mode to use
:param args: A list of aguments to pass to unity8
Definition at line 183 of file __init__.py.
185 Launch the unity shell, return a proxy object for it. 187 :param str mode: The type of greeter/shell mode to use 188 :param args: A list of aguments to pass to unity8 191 binary_path = get_binary_path()
192 lib_path = get_lib_path()
195 "Lib path is '%s', binary path is '%s'",
200 self.patch_lightdm_mock()
202 if self._qml_mock_enabled:
203 self._environment[
'QML2_IMPORT_PATH'] = (
204 get_qml_import_path_with_mock()
207 if self._data_dirs_mock_enabled:
208 self._patch_data_dirs()
210 unity8_cli_args_list = [
"--mode={}".format(mode)]
212 unity8_cli_args_list += args
214 app_proxy = self._launch_unity_with_upstart(
216 self.unity_geometry_args + unity8_cli_args_list
219 self._set_proxy(app_proxy)
222 logger.debug(
"Unity started, waiting for it to be ready.")
223 self.wait_for_unity()
224 logger.debug(
"Unity loaded and ready.")
226 if model() ==
'Desktop':
229 process_helpers.stop_job(
'unity8-dash')
def launch_unity(self, mode="full-greeter", args)
The documentation for this class was generated from the following file: