Merge lp:~barry/sudoku-app/py3autopilot into lp:sudoku-app

Proposed by Barry Warsaw
Status: Merged
Approved by: Dinko Osmankovic
Approved revision: 189
Merged at revision: 189
Proposed branch: lp:~barry/sudoku-app/py3autopilot
Merge into: lp:sudoku-app
Diff against target: 96 lines (+12/-10)
5 files modified
debian/control (+3/-2)
debian/sudoku-app-autopilot.install (+1/-1)
manifest.json (+4/-1)
tests/autopilot/sudoku_app/tests/__init__.py (+0/-1)
tests/autopilot/sudoku_app/tests/test_sudoku.py (+4/-5)
To merge this branch: bzr merge lp:~barry/sudoku-app/py3autopilot
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Dinko Osmankovic Approve
Review via email: mp+217990@code.launchpad.net

Commit message

Port autopilot tests to Python 3. Bump Standards-Version to 3.9.5.

Description of the change

Port autopilot tests to Python 3.
Bump Standards-Version to 3.9.5

To post a comment you must log in.
Revision history for this message
Dinko Osmankovic (dinko-metalac) wrote :

It goes through with me. Can we also check this with jenkins?

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Strange that it didn't run yet. Manually probing bot review.

Revision history for this message
Dinko Osmankovic (dinko-metalac) :
review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) :
review: Approve (continuous-integration)

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-03-13 20:32:31 +0000
3+++ debian/control 2014-05-01 23:18:28 +0000
4@@ -4,7 +4,7 @@
5 Maintainer: Dinko Osmankovic <dinko.metalac@gmail.com>
6 Build-Depends: debhelper (>= 9),
7 gettext,
8-Standards-Version: 3.9.4
9+Standards-Version: 3.9.5
10 Homepage: http://launchpad.net/sudoku-app
11 Vcs-Bzr: https://code.launchpad.net/~sudoku-touch-dev/sudoku-app/trunk
12
13@@ -19,7 +19,7 @@
14 qtdeclarative5-particles-plugin,
15 qtdeclarative5-window-plugin,
16 qtdeclarative5-xmllistmodel-plugin,
17- qtdeclarative5-usermetrics0.1,
18+ qtdeclarative5-usermetrics0.1,
19 Description: Sudoku game for Ubuntu devices
20 Simple Sudoku Touch game written in QML2/JS using Ubuntu SDK
21
22@@ -28,6 +28,7 @@
23 Depends: libautopilot-qt (>= 1.4),
24 libqt5test5,
25 ubuntu-ui-toolkit-autopilot,
26+ python3-autopilot,
27 sudoku-app (= ${source:Version})
28 Description: Autopilot UI tests for sudoku game for Ubuntu devices
29 This package contains the autopilot tests for the Sudoku App
30
31=== modified file 'debian/sudoku-app-autopilot.install'
32--- debian/sudoku-app-autopilot.install 2013-07-12 20:05:03 +0000
33+++ debian/sudoku-app-autopilot.install 2014-05-01 23:18:28 +0000
34@@ -1,1 +1,1 @@
35-tests/autopilot/sudoku_app/* usr/lib/python2.7/dist-packages/sudoku_app/
36+tests/autopilot/sudoku_app/* usr/lib/python3/dist-packages/sudoku_app/
37
38=== modified file 'manifest.json'
39--- manifest.json 2014-04-14 22:44:21 +0000
40+++ manifest.json 2014-05-01 23:18:28 +0000
41@@ -12,4 +12,7 @@
42 "name": "com.ubuntu.sudoku",
43 "title": "Sudoku",
44 "version": "1.0"
45-}
46\ No newline at end of file
47+ "x-test": {
48+ "autopilot": "sudoku_app"
49+ }
50+}
51
52=== modified file 'tests/autopilot/sudoku_app/tests/__init__.py'
53--- tests/autopilot/sudoku_app/tests/__init__.py 2013-11-04 22:37:12 +0000
54+++ tests/autopilot/sudoku_app/tests/__init__.py 2014-05-01 23:18:28 +0000
55@@ -7,7 +7,6 @@
56
57 """Sudoku app autopilot tests."""
58
59-import os.path
60 import os
61 import shutil
62 import logging
63
64=== modified file 'tests/autopilot/sudoku_app/tests/test_sudoku.py'
65--- tests/autopilot/sudoku_app/tests/test_sudoku.py 2014-03-14 09:35:21 +0000
66+++ tests/autopilot/sudoku_app/tests/test_sudoku.py 2014-05-01 23:18:28 +0000
67@@ -7,8 +7,6 @@
68
69 """Sudoku app autopilot tests."""
70
71-from __future__ import absolute_import
72-
73 from autopilot.matchers import Eventually
74 from testtools.matchers import Equals, NotEquals
75
76@@ -222,7 +220,8 @@
77
78 #select "Moderate" choice of difficulty selector
79 choices = self.main_view.get_difficulty_selector_labelvisual()
80- choice_ = filter(lambda choice: choice.text == 'Moderate', choices)[0]
81+ choice_ = [choice for choice in choices
82+ if choice.text == 'Moderate'][0]
83 self.pointing_device.click_object(choice_)
84 self.assertThat(
85 lambda:
86@@ -237,8 +236,8 @@
87
88 #select "Simple" choice of theme selector
89 themeChoices = self.main_view.get_theme_selector_labelvisual()
90- themeChoice = filter(lambda choice: choice.text == 'Simple',
91- themeChoices)[0]
92+ themeChoice = [choice for choice in themeChoices
93+ if choice.text == 'Simple'][0]
94 self.pointing_device.click_object(themeChoice)
95 self.assertThat(
96 lambda:

Subscribers

People subscribed via source and target branches