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
=== modified file 'debian/control'
--- debian/control 2014-03-13 20:32:31 +0000
+++ debian/control 2014-05-01 23:18:28 +0000
@@ -4,7 +4,7 @@
4Maintainer: Dinko Osmankovic <dinko.metalac@gmail.com>4Maintainer: Dinko Osmankovic <dinko.metalac@gmail.com>
5Build-Depends: debhelper (>= 9),5Build-Depends: debhelper (>= 9),
6 gettext,6 gettext,
7Standards-Version: 3.9.47Standards-Version: 3.9.5
8Homepage: http://launchpad.net/sudoku-app8Homepage: http://launchpad.net/sudoku-app
9Vcs-Bzr: https://code.launchpad.net/~sudoku-touch-dev/sudoku-app/trunk9Vcs-Bzr: https://code.launchpad.net/~sudoku-touch-dev/sudoku-app/trunk
1010
@@ -19,7 +19,7 @@
19 qtdeclarative5-particles-plugin,19 qtdeclarative5-particles-plugin,
20 qtdeclarative5-window-plugin,20 qtdeclarative5-window-plugin,
21 qtdeclarative5-xmllistmodel-plugin,21 qtdeclarative5-xmllistmodel-plugin,
22 qtdeclarative5-usermetrics0.1,22 qtdeclarative5-usermetrics0.1,
23Description: Sudoku game for Ubuntu devices23Description: Sudoku game for Ubuntu devices
24 Simple Sudoku Touch game written in QML2/JS using Ubuntu SDK24 Simple Sudoku Touch game written in QML2/JS using Ubuntu SDK
2525
@@ -28,6 +28,7 @@
28Depends: libautopilot-qt (>= 1.4),28Depends: libautopilot-qt (>= 1.4),
29 libqt5test5,29 libqt5test5,
30 ubuntu-ui-toolkit-autopilot,30 ubuntu-ui-toolkit-autopilot,
31 python3-autopilot,
31 sudoku-app (= ${source:Version})32 sudoku-app (= ${source:Version})
32Description: Autopilot UI tests for sudoku game for Ubuntu devices33Description: Autopilot UI tests for sudoku game for Ubuntu devices
33 This package contains the autopilot tests for the Sudoku App34 This package contains the autopilot tests for the Sudoku App
3435
=== modified file 'debian/sudoku-app-autopilot.install'
--- debian/sudoku-app-autopilot.install 2013-07-12 20:05:03 +0000
+++ debian/sudoku-app-autopilot.install 2014-05-01 23:18:28 +0000
@@ -1,1 +1,1 @@
1tests/autopilot/sudoku_app/* usr/lib/python2.7/dist-packages/sudoku_app/1tests/autopilot/sudoku_app/* usr/lib/python3/dist-packages/sudoku_app/
22
=== modified file 'manifest.json'
--- manifest.json 2014-04-14 22:44:21 +0000
+++ manifest.json 2014-05-01 23:18:28 +0000
@@ -12,4 +12,7 @@
12 "name": "com.ubuntu.sudoku",12 "name": "com.ubuntu.sudoku",
13 "title": "Sudoku",13 "title": "Sudoku",
14 "version": "1.0"14 "version": "1.0"
15}
16\ No newline at end of file15\ No newline at end of file
16 "x-test": {
17 "autopilot": "sudoku_app"
18 }
19}
1720
=== modified file 'tests/autopilot/sudoku_app/tests/__init__.py'
--- tests/autopilot/sudoku_app/tests/__init__.py 2013-11-04 22:37:12 +0000
+++ tests/autopilot/sudoku_app/tests/__init__.py 2014-05-01 23:18:28 +0000
@@ -7,7 +7,6 @@
77
8"""Sudoku app autopilot tests."""8"""Sudoku app autopilot tests."""
99
10import os.path
11import os10import os
12import shutil11import shutil
13import logging12import logging
1413
=== modified file 'tests/autopilot/sudoku_app/tests/test_sudoku.py'
--- tests/autopilot/sudoku_app/tests/test_sudoku.py 2014-03-14 09:35:21 +0000
+++ tests/autopilot/sudoku_app/tests/test_sudoku.py 2014-05-01 23:18:28 +0000
@@ -7,8 +7,6 @@
77
8"""Sudoku app autopilot tests."""8"""Sudoku app autopilot tests."""
99
10from __future__ import absolute_import
11
12from autopilot.matchers import Eventually10from autopilot.matchers import Eventually
13from testtools.matchers import Equals, NotEquals11from testtools.matchers import Equals, NotEquals
1412
@@ -222,7 +220,8 @@
222220
223 #select "Moderate" choice of difficulty selector221 #select "Moderate" choice of difficulty selector
224 choices = self.main_view.get_difficulty_selector_labelvisual()222 choices = self.main_view.get_difficulty_selector_labelvisual()
225 choice_ = filter(lambda choice: choice.text == 'Moderate', choices)[0]223 choice_ = [choice for choice in choices
224 if choice.text == 'Moderate'][0]
226 self.pointing_device.click_object(choice_)225 self.pointing_device.click_object(choice_)
227 self.assertThat(226 self.assertThat(
228 lambda:227 lambda:
@@ -237,8 +236,8 @@
237236
238 #select "Simple" choice of theme selector237 #select "Simple" choice of theme selector
239 themeChoices = self.main_view.get_theme_selector_labelvisual()238 themeChoices = self.main_view.get_theme_selector_labelvisual()
240 themeChoice = filter(lambda choice: choice.text == 'Simple',239 themeChoice = [choice for choice in themeChoices
241 themeChoices)[0]240 if choice.text == 'Simple'][0]
242 self.pointing_device.click_object(themeChoice)241 self.pointing_device.click_object(themeChoice)
243 self.assertThat(242 self.assertThat(
244 lambda:243 lambda:

Subscribers

People subscribed via source and target branches