Merge lp:~nskaggs/reminders-app/switch-emulators-to-proxy-object into lp:reminders-app

Proposed by Nicholas Skaggs
Status: Merged
Approved by: Nicholas Skaggs
Approved revision: 181
Merged at revision: 181
Proposed branch: lp:~nskaggs/reminders-app/switch-emulators-to-proxy-object
Merge into: lp:reminders-app
Diff against target: 91 lines (+9/-13)
2 files modified
tests/autopilot/reminders/__init__.py (+4/-6)
tests/autopilot/reminders/tests/__init__.py (+5/-7)
To merge this branch: bzr merge lp:~nskaggs/reminders-app/switch-emulators-to-proxy-object
Reviewer Review Type Date Requested Status
Leo Arias (community) code review Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+226706@code.launchpad.net

Commit message

Switch to custom proxy object emulator, instead of calling via old emulators module

Description of the change

Remove deprecation warning
Switch to custom proxy object emulator, instead of calling via old emulators module

To post a comment you must log in.
181. By Nicholas Skaggs

stop using private methods :-)

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Note, due to https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1341679, you will still see the deprecation error until the fix lands in the toolkit.

Revision history for this message
Leo Arias (elopio) wrote :

Looking good! Thanks.

review: Approve (code review)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/reminders/__init__.py'
2--- tests/autopilot/reminders/__init__.py 2014-07-02 16:05:53 +0000
3+++ tests/autopilot/reminders/__init__.py 2014-07-14 17:06:49 +0000
4@@ -26,8 +26,6 @@
5 import autopilot
6 from autopilot import logging as autopilot_logging
7 from autopilot.introspection import dbus
8-from ubuntuuitoolkit import emulators as toolkit_emulators
9-
10
11 logger = logging.getLogger(__name__)
12
13@@ -56,7 +54,7 @@
14 NotebooksPage, objectName='notebooksPage')
15
16
17-class MainView(toolkit_emulators.MainView):
18+class MainView(ubuntuuitoolkit.MainView):
19
20 """Autopilot custom proxy object for the MainView."""
21
22@@ -78,7 +76,7 @@
23 return self._no_account_dialog
24
25
26-class NoAccountDialog(toolkit_emulators.UbuntuUIToolkitEmulatorBase):
27+class NoAccountDialog(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):
28
29 """Autopilot custom proxy object for the no account dialog."""
30
31@@ -104,7 +102,7 @@
32 self.pointing_device.click_object(button)
33
34
35-class _Page(toolkit_emulators.UbuntuUIToolkitEmulatorBase):
36+class _Page(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):
37
38 def __init__(self, *args):
39 super(_Page, self).__init__(*args)
40@@ -169,7 +167,7 @@
41 return notebooks
42
43
44-class NotebooksDelegate(toolkit_emulators.UbuntuUIToolkitEmulatorBase):
45+class NotebooksDelegate(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):
46
47 """Autopilot custom proxy object for the NotebooksDelegate."""
48
49
50=== modified file 'tests/autopilot/reminders/tests/__init__.py'
51--- tests/autopilot/reminders/tests/__init__.py 2014-07-03 18:40:37 +0000
52+++ tests/autopilot/reminders/tests/__init__.py 2014-07-14 17:06:49 +0000
53@@ -24,10 +24,8 @@
54 import fixtures
55 from autopilot import logging as autopilot_logging
56 from autopilot.testcase import AutopilotTestCase
57-from ubuntuuitoolkit import (
58- emulators as toolkit_emulators,
59- fixture_setup as toolkit_fixtures
60-)
61+import ubuntuuitoolkit
62+from ubuntuuitoolkit import fixture_setup as toolkit_fixtures
63
64 import reminders
65
66@@ -85,7 +83,7 @@
67 '-q', self.local_location_qml,
68 '-s',
69 app_type='qt',
70- emulator_base=toolkit_emulators.UbuntuUIToolkitEmulatorBase)
71+ emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase)
72
73 @autopilot_logging.log_action(logger.info)
74 def launch_test_installed(self):
75@@ -96,14 +94,14 @@
76 '--desktop_file_hint=/usr/share/applications/'
77 'reminders.desktop',
78 app_type='qt',
79- emulator_base=toolkit_emulators.UbuntuUIToolkitEmulatorBase)
80+ emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase)
81
82 @autopilot_logging.log_action(logger.info)
83 def launch_test_click(self):
84 return self.launch_click_package(
85 'com.ubuntu.reminders',
86 '-s',
87- emulator_base=toolkit_emulators.UbuntuUIToolkitEmulatorBase)
88+ emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase)
89
90 def _patch_home(self, test_type):
91 temp_dir_fixture = fixtures.TempDir()

Subscribers

People subscribed via source and target branches