Merge lp:~nskaggs/ubuntu-terminal-app/new-pep8-fixes into lp:ubuntu-terminal-app

Proposed by Nicholas Skaggs
Status: Merged
Approved by: Nicholas Skaggs
Approved revision: 82
Merged at revision: 82
Proposed branch: lp:~nskaggs/ubuntu-terminal-app/new-pep8-fixes
Merge into: lp:ubuntu-terminal-app
Diff against target: 66 lines (+9/-8)
2 files modified
tests/autopilot/ubuntu_terminal_app/tests/__init__.py (+1/-0)
tests/autopilot/ubuntu_terminal_app/tests/test_terminal.py (+8/-8)
To merge this branch: bzr merge lp:~nskaggs/ubuntu-terminal-app/new-pep8-fixes
Reviewer Review Type Date Requested Status
Julia Palandri (community) Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+224856@code.launchpad.net

Commit message

Fixes for new pep8 requirements

Description of the change

Fixes for new pep8 requirements

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Julia Palandri (julia-palandri) wrote :

LGTM

line 46 could be s/string/strings, but nothing serious

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/autopilot/ubuntu_terminal_app/tests/__init__.py'
--- tests/autopilot/ubuntu_terminal_app/tests/__init__.py 2014-05-06 18:52:40 +0000
+++ tests/autopilot/ubuntu_terminal_app/tests/__init__.py 2014-06-27 15:15:20 +0000
@@ -84,6 +84,7 @@
8484
8585
86class DbMan(object):86class DbMan(object):
87
87 """88 """
88 Helper functions for dealing with sqlite databases89 Helper functions for dealing with sqlite databases
89 """90 """
9091
=== modified file 'tests/autopilot/ubuntu_terminal_app/tests/test_terminal.py'
--- tests/autopilot/ubuntu_terminal_app/tests/test_terminal.py 2014-06-16 10:38:24 +0000
+++ tests/autopilot/ubuntu_terminal_app/tests/test_terminal.py 2014-06-27 15:15:20 +0000
@@ -72,7 +72,7 @@
72 for ritem in items:72 for ritem in items:
73 if ritem.text == value:73 if ritem.text == value:
74 self.pointing_device.click_object(ritem)74 self.pointing_device.click_object(ritem)
75 #the first label is always the "color scheme"75 # the first label is always the "color scheme"
76 itemLabel = lambda: ritem.text76 itemLabel = lambda: ritem.text
77 self.assertThat(itemLabel, Eventually(Equals(value)))77 self.assertThat(itemLabel, Eventually(Equals(value)))
7878
@@ -126,11 +126,11 @@
126 tap_x = (x + w) / 2126 tap_x = (x + w) / 2
127 tap_y = (y + h) / 3127 tap_y = (y + h) / 3
128128
129 #tap in the top third of the screen, to avoid OSK129 # tap in the top third of the screen, to avoid OSK
130 self.pointing_device.move(tap_x, tap_y)130 self.pointing_device.move(tap_x, tap_y)
131 self.pointing_device.press()131 self.pointing_device.press()
132 #we can hold the press for a long time without issue132 # we can hold the press for a long time without issue
133 #so we'll ensure the app recieves our signal when under load133 # so we'll ensure the app recieves our signal when under load
134 sleep(4)134 sleep(4)
135 self.pointing_device.release()135 self.pointing_device.release()
136136
@@ -152,8 +152,8 @@
152 kterm = self.main_view.get_kterm()152 kterm = self.main_view.get_kterm()
153 self.main_view.switch_to_tab("SettingsTab")153 self.main_view.switch_to_tab("SettingsTab")
154154
155 #are these string translatable?155 # are these string translatable?
156 #if so, we need to do this another way156 # if so, we need to do this another way
157 schemeList = ("DarkPastels",157 schemeList = ("DarkPastels",
158 "Linux",158 "Linux",
159 "BlackOnRandomLight",159 "BlackOnRandomLight",
@@ -181,13 +181,13 @@
181 font_size = self.get_font_size_from_storage()181 font_size = self.get_font_size_from_storage()
182 self.assertThat(font_size, Equals(32))182 self.assertThat(font_size, Equals(32))
183183
184 ## change font size to min184 # change font size to min
185 self.main_view.drag_horizontal_slider("slFont", 8)185 self.main_view.drag_horizontal_slider("slFont", 8)
186 sleep(1)186 sleep(1)
187 font_size = self.get_font_size_from_storage()187 font_size = self.get_font_size_from_storage()
188 self.assertThat(font_size, Equals(8))188 self.assertThat(font_size, Equals(8))
189189
190 ## change font size to random sizes190 # change font size to random sizes
191 for loop in range(1, 3):191 for loop in range(1, 3):
192 randSize = random.randrange(8, 32, 1)192 randSize = random.randrange(8, 32, 1)
193 self.main_view.drag_horizontal_slider("slFont", randSize)193 self.main_view.drag_horizontal_slider("slFont", randSize)

Subscribers

People subscribed via source and target branches