Merge lp:~canonical-platform-qa/unity8/fix1341681-toolkit_deprecation into lp:unity8

Proposed by Leo Arias
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 1657
Merged at revision: 1682
Proposed branch: lp:~canonical-platform-qa/unity8/fix1341681-toolkit_deprecation
Merge into: lp:unity8
Prerequisite: lp:~canonical-platform-qa/unity8/nopy2
Diff against target: 46 lines (+6/-7)
2 files modified
tests/autopilot/unity8/shell/emulators/__init__.py (+5/-5)
tests/autopilot/unity8/shell/emulators/dash.py (+1/-2)
To merge this branch: bzr merge lp:~canonical-platform-qa/unity8/fix1341681-toolkit_deprecation
Reviewer Review Type Date Requested Status
Albert Astals Cid (community) Approve
PS Jenkins bot (community) continuous-integration Needs Fixing
Review via email: mp+252133@code.launchpad.net

Commit message

Stop using the deprecated toolkit emulators namespace in autopilot tests.

Description of the change

This will remove the deprecation warning from the logs.

To post a comment you must log in.
1657. By Leo Arias

Link to the bug.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Leo Arias (elopio) wrote :

 * Are there any related MPs required for this MP to build/function as expected? Please list.

Only the prerequisite. Already approved and added just to avoid potential conflicts.

 * Did you perform an exploratory manual test run of your code change and any related functionality?

Just ran the tests.

 * Did you make sure that your branch does not contain spurious tags?

Yes.

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?

No changes.

 * If you changed the UI, has there been a design review?

No changes.

Revision history for this message
Albert Astals Cid (aacid) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
No, test change only

 * Did CI run pass? If not, please explain why.
No, but tests passed here fine

 * Did you make sure that the branch does not contain spurious tags?
Yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/unity8/shell/emulators/__init__.py'
2--- tests/autopilot/unity8/shell/emulators/__init__.py 2014-03-27 21:53:12 +0000
3+++ tests/autopilot/unity8/shell/emulators/__init__.py 2015-03-06 15:41:48 +0000
4@@ -1,7 +1,7 @@
5 # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
6 #
7 # Unity Autopilot Test Suite
8-# Copyright (C) 2012, 2013, 2014 Canonical
9+# Copyright (C) 2012, 2013, 2014, 2015 Canonical
10 #
11 # This program is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13@@ -17,10 +17,10 @@
14 # along with this program. If not, see <http://www.gnu.org/licenses/>.
15 #
16
17-from ubuntuuitoolkit import emulators as toolkit_emulators
18-
19-
20-class UnityEmulatorBase(toolkit_emulators.UbuntuUIToolkitEmulatorBase):
21+import ubuntuuitoolkit
22+
23+
24+class UnityEmulatorBase(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):
25 """A base class for all unity emulators."""
26
27
28
29=== modified file 'tests/autopilot/unity8/shell/emulators/dash.py'
30--- tests/autopilot/unity8/shell/emulators/dash.py 2015-03-06 15:41:48 +0000
31+++ tests/autopilot/unity8/shell/emulators/dash.py 2015-03-06 15:41:48 +0000
32@@ -24,7 +24,6 @@
33
34 from autopilot import logging as autopilot_logging
35 from autopilot.introspection import dbus
36-from ubuntuuitoolkit import emulators as toolkit_emulators
37
38
39 logger = logging.getLogger(__name__)
40@@ -37,7 +36,7 @@
41 def __init__(self, app_proxy):
42 self.app_proxy = app_proxy
43 self.main_view = self.app_proxy.select_single(
44- toolkit_emulators.MainView)
45+ ubuntuuitoolkit.MainView)
46 self.dash = self.main_view.select_single(Dash)
47
48

Subscribers

People subscribed via source and target branches