@@ -31,21 +31,14 @@ from ubuntuuitoolkit import fixture_setup
32from unity8 import (
32from unity8 import (
33 get_binary_path,
33 get_binary_path,
34+ get_mocks_library_path,
35+ get_default_extra_mock_libraries,
35 process_helpers
39 process_helpers
38−from unity8.shell import emulators
40−from unity8.shell.emulators import (
41− main_window as main_window_emulator
45− get_mocks_library_path,
46− get_default_extra_mock_libraries,
50logger = logging.getLogger(__name__)
43logger = logging.getLogger(__name__)
@@ -140,8 +133,7 @@ class LaunchUnityWithFakeSensors(fixtures.Fixture):
140 args = [binary_arg] + env_args
133 args = [binary_arg] + env_args
141 self.unity_proxy = process_helpers.restart_unity_with_testability(
134 self.unity_proxy = process_helpers.restart_unity_with_testability(
143− self.main_win = self.unity_proxy.select_single(
136+ self.main_win = self.unity_proxy.select_single(shell.QQuickView)
144− main_window_emulator.QQuickView)
146 def _create_sensors(self):
138 def _create_sensors(self):
147 # Wait for unity to start running.
139 # Wait for unity to start running.
@@ -159,8 +151,6 @@ class LaunchUnityWithFakeSensors(fixtures.Fixture):
159 fifo.write('create light 0 10 1\n')
151 fifo.write('create light 0 10 1\n')
160 fifo.write('create proximity\n')
152 fifo.write('create proximity\n')
162−logger = logging.getLogger(__name__)
165class RestartUnityWithTestability(fixtures.Fixture):
155class RestartUnityWithTestability(fixtures.Fixture):