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
=== modified file 'tests/autopilot/unity8/shell/emulators/__init__.py'
--- tests/autopilot/unity8/shell/emulators/__init__.py 2014-03-27 21:53:12 +0000
+++ tests/autopilot/unity8/shell/emulators/__init__.py 2015-03-06 15:41:48 +0000
@@ -1,7 +1,7 @@
1# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-1# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
2#2#
3# Unity Autopilot Test Suite3# Unity Autopilot Test Suite
4# Copyright (C) 2012, 2013, 2014 Canonical4# Copyright (C) 2012, 2013, 2014, 2015 Canonical
5#5#
6# This program is free software: you can redistribute it and/or modify6# This program is free software: you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by7# it under the terms of the GNU General Public License as published by
@@ -17,10 +17,10 @@
17# along with this program. If not, see <http://www.gnu.org/licenses/>.17# along with this program. If not, see <http://www.gnu.org/licenses/>.
18#18#
1919
20from ubuntuuitoolkit import emulators as toolkit_emulators20import ubuntuuitoolkit
2121
2222
23class UnityEmulatorBase(toolkit_emulators.UbuntuUIToolkitEmulatorBase):23class UnityEmulatorBase(ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase):
24 """A base class for all unity emulators."""24 """A base class for all unity emulators."""
2525
2626
2727
=== modified file 'tests/autopilot/unity8/shell/emulators/dash.py'
--- tests/autopilot/unity8/shell/emulators/dash.py 2015-03-06 15:41:48 +0000
+++ tests/autopilot/unity8/shell/emulators/dash.py 2015-03-06 15:41:48 +0000
@@ -24,7 +24,6 @@
2424
25from autopilot import logging as autopilot_logging25from autopilot import logging as autopilot_logging
26from autopilot.introspection import dbus26from autopilot.introspection import dbus
27from ubuntuuitoolkit import emulators as toolkit_emulators
2827
2928
30logger = logging.getLogger(__name__)29logger = logging.getLogger(__name__)
@@ -37,7 +36,7 @@
37 def __init__(self, app_proxy):36 def __init__(self, app_proxy):
38 self.app_proxy = app_proxy37 self.app_proxy = app_proxy
39 self.main_view = self.app_proxy.select_single(38 self.main_view = self.app_proxy.select_single(
40 toolkit_emulators.MainView)39 ubuntuuitoolkit.MainView)
41 self.dash = self.main_view.select_single(Dash)40 self.dash = self.main_view.select_single(Dash)
4241
4342

Subscribers

People subscribed via source and target branches