20 """Set up and clean up fixtures for the Unity acceptance tests."""
30 class FakeScopes(fixtures.Fixture):
33 super(FakeScopes, self).
setUp()
35 fixtures.EnvironmentVariable(
37 newvalue=self._get_fake_scopes_library_path()))
39 def _get_fake_scopes_library_path(self):
41 mock_path =
'qml/scopefakes/'
43 mock_path = os.path.join(
44 '../lib/', sysconfig.get_config_var(
'MULTIARCH'),
45 'unity8/qml/scopefakes/')
47 ld_library_path = os.path.abspath(os.path.join(lib_path, mock_path))
49 if not os.path.exists(ld_library_path):
51 'Expected library path does not exists: %s.' % (
53 return ld_library_path
def running_installed_tests