Merge lp:~elopio/ubuntu-autopilot-tests/skip_dialer into lp:ubuntu-autopilot-tests/ubuntu-experience-tests

Proposed by Leo Arias
Status: Merged
Approved by: Chris Gagnon
Approved revision: 25
Merged at revision: 22
Proposed branch: lp:~elopio/ubuntu-autopilot-tests/skip_dialer
Merge into: lp:ubuntu-autopilot-tests/ubuntu-experience-tests
Diff against target: 182 lines (+46/-89)
5 files modified
debian/control (+10/-14)
debian/rules (+1/-3)
debian/ubuntu-experience-tests.install (+0/-1)
setup.py (+35/-0)
ubuntu_experience_tests/tests/test_osd_dialer_integration.py (+0/-71)
To merge this branch: bzr merge lp:~elopio/ubuntu-autopilot-tests/skip_dialer
Reviewer Review Type Date Requested Status
Chris Gagnon (community) Approve
Review via email: mp+223671@code.launchpad.net

Commit message

Ported package to python3.
removed dialer tests for now, because it is python2.

To post a comment you must log in.
Revision history for this message
Thomi Richards (thomir-deactivatedaccount) wrote :

LGTM, with the exception of the diff comment.

24. By Leo Arias

Fixed the last debian/control bits.

25. By Leo Arias

Removed temporarily the dialer test. Will be readded once the py3 branch lands.

Revision history for this message
Chris Gagnon (chris.gagnon) wrote :

lgtm

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2014-05-26 12:08:36 +0000
3+++ debian/control 2014-06-19 20:59:39 +0000
4@@ -3,27 +3,23 @@
5 Priority: optional
6 Maintainer: Ubuntu Quality Team <ubuntu-quality@lists.ubuntu.com>
7 Build-Depends: debhelper (>= 9.0.0),
8- python,
9- python-flake8,
10- python-setuptools,
11- python-support (>= 0.90),
12+ dh-python,
13+ python3-all,
14+ python3-flake8,
15 Standards-Version: 3.9.5
16-X-Python-Version: >= 2.7
17 Homepage: https://launchpad.net/ubuntu-autopilot-tests/
18-# if you don't have have commit access to this branch but would like to upload
19-# directly to Ubuntu, don't worry: your changes will be merged back into the
20-# upstream branch
21-Vcs-bzr: lp:ubuntu-autopilot-tests/ubuntu-integration-tests
22+Vcs-bzr: lp:ubuntu-autopilot-tests/ubuntu-experience-tests
23+X-Python3-Version: >= 3.2
24
25 Package: ubuntu-experience-tests
26 Architecture: all
27-Depends: ${shlibs:Depends},
28- ${misc:Depends},
29- python-autopilot,
30- dialer-app-autopilot ( >= 0.1+14.04.20140130-0ubuntu1),
31+Depends: ${misc:Depends},
32+ ${python3:Depends},
33+ ${shlibs:Depends},
34+ python3-autopilot,
35 ubuntu-ui-toolkit-autopilot,
36 unity8-autopilot,
37 url-dispatcher-tools,
38-Description: Ubuntu Autopilot Testcases
39+Description: Ubuntu user experience Autopilot tests
40 This package provides a set of autopilot tests for testing
41 the inter-app integration under Unity8
42
43=== modified file 'debian/rules'
44--- debian/rules 2014-03-27 17:39:27 +0000
45+++ debian/rules 2014-06-19 20:59:39 +0000
46@@ -1,13 +1,11 @@
47 #!/usr/bin/make -f
48 # -*- makefile -*-
49
50-export DPKG_GENSYMBOLS_CHECK_LEVEL=4
51-
52 # Uncomment this to turn on verbose mode.
53 #export DH_VERBOSE=1
54
55 %:
56- dh $@ --fail-missing
57+ dh $@ --fail-missing --with python3 --buildsystem pybuild
58
59 override_dh_auto_test:
60 flake8 ubuntu_experience_tests/
61
62=== removed file 'debian/ubuntu-experience-tests.install'
63--- debian/ubuntu-experience-tests.install 2014-03-10 13:15:57 +0000
64+++ debian/ubuntu-experience-tests.install 1970-01-01 00:00:00 +0000
65@@ -1,1 +0,0 @@
66-ubuntu_experience_tests usr/lib/python2.7/dist-packages/
67
68=== added file 'setup.py'
69--- setup.py 1970-01-01 00:00:00 +0000
70+++ setup.py 2014-06-19 20:59:39 +0000
71@@ -0,0 +1,35 @@
72+#!/usr/bin/env python3
73+
74+# Copyright 2014 Canonical Ltd.
75+#
76+# This file is part of ubuntu-experience-tests.
77+#
78+# This program is free software; you can redistribute it and/or modify
79+# it under the terms of the GNU General Public License version 3, as published
80+# by the Free Software Foundation.
81+#
82+# This program is distributed in the hope that it will be useful,
83+# but WITHOUT ANY WARRANTY; without even the implied warranty of
84+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
85+# GNU General Public License for more details.
86+#
87+# You should have received a copy of the GNU General Public License
88+# along with this program. If not, see <http://www.gnu.org/licenses
89+
90+import setuptools
91+
92+
93+VERSION = '1.0'
94+
95+
96+setuptools.setup(
97+ name='ubuntu_experience_tests',
98+ version=VERSION,
99+ description='Ubuntu user experience Autopilot tests.',
100+ author='Ubuntu Engineering QA Team',
101+ author_email='qa-team@lists.canonical.com',
102+ url='https://launchpad.net/ubuntu-autopilot-tests/ubuntu-experience-tests',
103+ license='GPLv3',
104+ packages=setuptools.find_packages(),
105+ test_suite='ubuntu_experience_tests.tests',
106+)
107
108=== removed file 'ubuntu_experience_tests/tests/test_osd_dialer_integration.py'
109--- ubuntu_experience_tests/tests/test_osd_dialer_integration.py 2014-05-29 09:20:31 +0000
110+++ ubuntu_experience_tests/tests/test_osd_dialer_integration.py 1970-01-01 00:00:00 +0000
111@@ -1,71 +0,0 @@
112-# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
113-#
114-# Copyright 2014 Canonical Ltd.
115-# Author: Omer Akram <omer.akram@canonical.com>
116-#
117-# This file is part of ubuntu-experience-tests.
118-#
119-# This program is free software; you can redistribute it and/or modify
120-# it under the terms of the GNU General Public License version 3, as published
121-# by the Free Software Foundation.
122-#
123-# This program is distributed in the hope that it will be useful,
124-# but WITHOUT ANY WARRANTY; without even the implied warranty of
125-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
126-# GNU General Public License for more details.
127-#
128-# You should have received a copy of the GNU General Public License
129-# along with this program. If not, see <http://www.gnu.org/licenses/>
130-
131-import subprocess
132-
133-from autopilot.matchers import Eventually
134-from autopilot import platform
135-from dialer_app import helpers as dialer_helpers
136-from testtools.matchers import Equals
137-from ubuntu_experience_tests import helpers, tests
138-
139-
140-class DialerNotificationTestCase(tests.UbuntuExperienceTestCase):
141-
142- def setUp(self):
143- if platform.model() == 'Desktop':
144- self.skipTest('The tests is not running on a phone.')
145- if not dialer_helpers.is_phonesim_running():
146- self.skipTest('ofono-phonesim is not running.')
147-
148- super(DialerNotificationTestCase, self).setUp()
149- self.addCleanup(
150- subprocess.call, ['/usr/share/ofono/scripts/hangup-all']
151- )
152- subprocess.call(
153- ['mc-tool', 'update', 'ofono/ofono/account0',
154- 'string:modem-objpath=/phonesim'])
155- subprocess.call(['mc-tool', 'reconnect', 'ofono/ofono/account0'])
156-
157- def _get_accept_button(self, unity):
158- return unity.select_single(objectName='button0', visible=True)
159-
160- def _get_decline_button(self, unity):
161- return unity.select_single(objectName='button1', visible=True)
162-
163- def _accept_call_from_ui(self):
164- accept_button = self._get_accept_button(self.unity_proxy)
165-
166- self.pointing_device.click_object(accept_button)
167-
168- def test_unity_accept_button_open_dialer(self):
169- """Ensure tapping on 'accept' button in the OSD notification
170- opens up the dialer-app in live call.
171-
172- """
173- dialer_helpers.invoke_incoming_call()
174- dialer_helpers.wait_for_incoming_call()
175- self._accept_call_from_ui()
176-
177- dialer = helpers.get_proxy_object_by_process_name('dialer-app')
178- dialer_main_view = dialer.wait_select_single("QQuickView")
179- live_call = dialer.wait_select_single(objectName='pageLiveCall')
180-
181- self.assertThat(dialer_main_view.visible, Eventually(Equals(True)))
182- self.assertThat(live_call.visible, Eventually(Equals(True)))

Subscribers

People subscribed via source and target branches