Merge lp:~om26er/gallery-app/reduce_pep8_complaints into lp:gallery-app

Proposed by Omer Akram
Status: Superseded
Proposed branch: lp:~om26er/gallery-app/reduce_pep8_complaints
Merge into: lp:gallery-app
Diff against target: 88 lines (+16/-13)
4 files modified
tests/autopilot/gallery_app/emulators/album_editor.py (+1/-1)
tests/autopilot/gallery_app/emulators/album_view.py (+2/-2)
tests/autopilot/gallery_app/tests/__init__.py (+8/-5)
tests/autopilot/gallery_app/tests/test_album_editor.py (+5/-5)
To merge this branch: bzr merge lp:~om26er/gallery-app/reduce_pep8_complaints
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Omer Akram (community) Approve
Günter Schwann (community) Approve
Review via email: mp+165854@code.launchpad.net

This proposal has been superseded by a proposal from 2013-05-29.

Commit message

Fix a few pep8 complaints

Description of the change

Fixes a few pep8 complaints

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Günter Schwann (schwann) :
review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Omer Akram (om26er) wrote :

Self-approving for the autolanding job to run.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Omer Akram (om26er) wrote :

oops, forgot the top-approve.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/autopilot/gallery_app/emulators/album_editor.py'
--- tests/autopilot/gallery_app/emulators/album_editor.py 2013-05-15 08:25:11 +0000
+++ tests/autopilot/gallery_app/emulators/album_editor.py 2013-05-27 11:31:30 +0000
@@ -52,5 +52,5 @@
5252
53 def get_cover_menu_item(self, idx):53 def get_cover_menu_item(self, idx):
54 """Returns the item of the cover menu with index idx"""54 """Returns the item of the cover menu with index idx"""
55 return self.app.select_many("Standard", 55 return self.app.select_many("Standard",
56 objectName="albumCoverMenuItem")[idx]56 objectName="albumCoverMenuItem")[idx]
5757
=== modified file 'tests/autopilot/gallery_app/emulators/album_view.py'
--- tests/autopilot/gallery_app/emulators/album_view.py 2013-05-23 11:22:48 +0000
+++ tests/autopilot/gallery_app/emulators/album_view.py 2013-05-27 11:31:30 +0000
@@ -29,8 +29,8 @@
2929
30 def get_first_photo(self):30 def get_first_photo(self):
31 """Returns the first photo in a newly opened album"""31 """Returns the first photo in a newly opened album"""
32 return self.app.select_many("FramePortrait",32 return self.app.select_many(
33 visible=True, isLoaded=True)[0]33 "FramePortrait", visible=True, isLoaded=True)[0]
3434
35 def get_album_photo_view(self):35 def get_album_photo_view(self):
36 """Returns the photo view of the album viewer"""36 """Returns the photo view of the album viewer"""
3737
=== modified file 'tests/autopilot/gallery_app/tests/__init__.py'
--- tests/autopilot/gallery_app/tests/__init__.py 2013-05-23 11:22:48 +0000
+++ tests/autopilot/gallery_app/tests/__init__.py 2013-05-27 11:31:30 +0000
@@ -83,15 +83,18 @@
83 sleep(1)83 sleep(1)
8484
85 def launch_test_local(self):85 def launch_test_local(self):
86 self.app = self.launch_test_application(self.local_location,86 self.app = self.launch_test_application(
87 self.local_location,
87 self.sample_dir)88 self.sample_dir)
8889
89 def launch_test_installed(self):90 def launch_test_installed(self):
90 if model() == 'Desktop':91 if model() == 'Desktop':
91 self.app = self.launch_test_application("gallery-app",92 self.app = self.launch_test_application(
93 "gallery-app",
92 self.sample_dir)94 self.sample_dir)
93 else:95 else:
94 self.app = self.launch_test_application("gallery-app",96 self.app = self.launch_test_application(
97 "gallery-app",
95 "--desktop_file_hint=/usr/share/applications/gallery-app.desktop",98 "--desktop_file_hint=/usr/share/applications/gallery-app.desktop",
96 self.sample_dir,99 self.sample_dir,
97 app_type='qt')100 app_type='qt')
@@ -103,8 +106,8 @@
103 def click_item(self, item, delay=0.1):106 def click_item(self, item, delay=0.1):
104 """Does a mouse click on the passed item, and moved the mouse there107 """Does a mouse click on the passed item, and moved the mouse there
105 before"""108 before"""
106 #In jenkins test may fail because we don't wait before clicking the target109 # In jenkins test may fail because we don't wait before clicking the
107 #so we add a little delay before click.110 # target so we add a little delay before click.
108 if model() == 'Desktop' and delay <= 0.25:111 if model() == 'Desktop' and delay <= 0.25:
109 delay = 0.25112 delay = 0.25
110113
111114
=== modified file 'tests/autopilot/gallery_app/tests/test_album_editor.py'
--- tests/autopilot/gallery_app/tests/test_album_editor.py 2013-05-23 11:22:48 +0000
+++ tests/autopilot/gallery_app/tests/test_album_editor.py 2013-05-27 11:31:30 +0000
@@ -150,16 +150,16 @@
150 def test_cover_image(self):150 def test_cover_image(self):
151 """Test to change the album cover image"""151 """Test to change the album cover image"""
152 cover_image = self.album_editor.get_album_cover_image()152 cover_image = self.album_editor.get_album_cover_image()
153 self.assertThat(cover_image.source.endswith("album-cover-default-large.png"),153 self.assertThat(
154 Equals(True))154 cover_image.source.endswith("album-cover-default-large.png"), Equals(True))
155155
156 # click somewhere rather at the bottom of the cover156 # click somewhere rather at the bottom of the cover
157 x, y, w, h = cover_image.globalRect157 x, y, w, h = cover_image.globalRect
158 self.pointing_device.move(x + int(w/2), y + h - int(h/10) )158 self.pointing_device.move(x + int(w / 2), y + h - int(h / 10))
159 self.pointing_device.click()159 self.pointing_device.click()
160160
161 green_item = self.album_editor.get_cover_menu_item(2)161 green_item = self.album_editor.get_cover_menu_item(2)
162 self.click_item(green_item)162 self.click_item(green_item)
163163
164 self.assertThat(cover_image.source.endswith("album-cover-green-large.png"),164 self.assertThat(
165 Equals(True))165 cover_image.source.endswith("album-cover-green-large.png"), Equals(True))

Subscribers

People subscribed via source and target branches