~timo-jyrinki/ubuntu-calendar-app/use_pickerpanelworkaround_lp1351024

« back to all changes in this revision

Viewing changes to tests/autopilot/calendar_app/tests/__init__.py

Use the new toolkit namespace for autopilot tests. Fixes: https://bugs.launchpad.net/bugs/1341681.

Approved by Ubuntu Phone Apps Jenkins Bot, Omer Akram.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
from autopilot.testcase import AutopilotTestCase
29
29
from autopilot import logging as autopilot_logging
30
30
 
 
31
import ubuntuuitoolkit
31
32
from ubuntuuitoolkit import (
32
33
    base,
33
 
    emulators as toolkit_emulators,
34
34
    fixture_setup as toolkit_fixtures
35
35
)
36
36
 
83
83
            base.get_qmlscene_launch_command(),
84
84
            self.local_location_qml,
85
85
            app_type='qt',
86
 
            emulator_base=toolkit_emulators.UbuntuUIToolkitEmulatorBase)
 
86
            emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase)
87
87
 
88
88
    @autopilot_logging.log_action(logger.info)
89
89
    def launch_test_installed(self):
91
91
            base.get_qmlscene_launch_command(),
92
92
            self.installed_location_qml,
93
93
            app_type='qt',
94
 
            emulator_base=toolkit_emulators.UbuntuUIToolkitEmulatorBase)
 
94
            emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase)
95
95
 
96
96
    @autopilot_logging.log_action(logger.info)
97
97
    def launch_test_click(self):
98
98
        return self.launch_click_package(
99
99
            "com.ubuntu.calendar",
100
 
            emulator_base=toolkit_emulators.UbuntuUIToolkitEmulatorBase)
 
100
            emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase)
101
101
 
102
102
    def _copy_xauthority_file(self, directory):
103
103
        """ Copy .Xauthority file to directory, if it exists in /home