Merge lp:~nskaggs/dropping-letters/new-pep8-fixes into lp:dropping-letters

Proposed by Nicholas Skaggs
Status: Merged
Approved by: Nicholas Skaggs
Approved revision: 55
Merged at revision: 54
Proposed branch: lp:~nskaggs/dropping-letters/new-pep8-fixes
Merge into: lp:dropping-letters
Diff against target: 111 lines (+25/-24)
2 files modified
tests/autopilot/dropping_letters_app/emulators.py (+7/-6)
tests/autopilot/dropping_letters_app/tests/test_dropping_letters.py (+18/-18)
To merge this branch: bzr merge lp:~nskaggs/dropping-letters/new-pep8-fixes
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Julia Palandri (community) Approve
Review via email: mp+224857@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: Needs Fixing (continuous-integration)
55. By Nicholas Skaggs

fix E501 line too long

Revision history for this message
Julia Palandri (julia-palandri) wrote :

LGTM

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 'tests/autopilot/dropping_letters_app/emulators.py'
2--- tests/autopilot/dropping_letters_app/emulators.py 2013-10-28 13:22:42 +0000
3+++ tests/autopilot/dropping_letters_app/emulators.py 2014-06-27 15:53:00 +0000
4@@ -37,15 +37,16 @@
5 return item
6
7 def get_help_popover(self):
8- #checking the popup seems to fail
9+ # checking the popup seems to fail
10 # -- https://bugs.launchpad.net/autopilot/+bug/1195141?
11- #we can't get the popup by objectname for ??
12- #this works OK because at the moment, there is only one popup
13+ # we can't get the popup by objectname for ??
14+ # this works OK because at the moment, there is only one popup
15 # -- needs fixed
16- #item = self.select_single('Label', objectname='helpsheetpopoverlabel')
17- #item = self.select_single('QQuickRectangle',
18+ # item = self.select_single('Label',
19+ # objectname='helpsheetpopoverlabel')
20+ # item = self.select_single('QQuickRectangle',
21 # objectname='helpsheetpopoverbox')
22- #item = self.select_single('Popover', objectname='helpsheetpopover')
23+ # item = self.select_single('Popover', objectname='helpsheetpopover')
24
25 item = self.wait_select_single('Popover')
26 return item
27
28=== modified file 'tests/autopilot/dropping_letters_app/tests/test_dropping_letters.py'
29--- tests/autopilot/dropping_letters_app/tests/test_dropping_letters.py 2013-10-28 13:22:42 +0000
30+++ tests/autopilot/dropping_letters_app/tests/test_dropping_letters.py 2014-06-27 15:53:00 +0000
31@@ -38,18 +38,18 @@
32
33 def test_intro_screen(self):
34 helpbutton = self.main_view.get_help_button()
35- #check help button popup
36+ # check help button popup
37 self.assertTrue(helpbutton.visible)
38
39- #open the popup
40+ # open the popup
41 self.pointing_device.click_object(helpbutton)
42
43- #check and ensure help popover appears
44+ # check and ensure help popover appears
45 helpPopover = self.main_view.get_help_popover()
46 properties = helpPopover.get_properties()
47 self.assertTrue(properties["visible"])
48
49- #check and ensure help popover disappears
50+ # check and ensure help popover disappears
51 self.pointing_device.click_object(helpbutton)
52 self.assertThat(self.main_view.get_many_popover,
53 Eventually(Equals([])))
54@@ -62,23 +62,23 @@
55 self.assertEquals(main_score_label.text, '0')
56
57 def test_finishing_a_word(self):
58- #start game and close toolbar
59+ # start game and close toolbar
60 toolbar = self.main_view.open_toolbar()
61 toolbar.click_button('new_game')
62 self._assert_game_screen()
63 toolbar = self.main_view.close_toolbar()
64
65- #check for letters falling
66- #select first 2 letters; wait for 3 letters to appear
67- #so first 2 are settled for clicking
68+ # check for letters falling
69+ # select first 2 letters; wait for 3 letters to appear
70+ # so first 2 are settled for clicking
71 tiles = self.main_view.get_letter_tiles()
72 while len(tiles) < 3:
73 tiles = self.main_view.get_letter_tiles()
74
75- #click the accumlated letters
76- #check and make sure they get selected
77- #add tries as a control to avoid infinite loop
78- #and provide better failure feedback
79+ # click the accumlated letters
80+ # check and make sure they get selected
81+ # add tries as a control to avoid infinite loop
82+ # and provide better failure feedback
83 tries = 0
84 self.pointing_device.click_object(tiles[0])
85 tileProperties = tiles[0].get_properties()
86@@ -101,19 +101,19 @@
87
88 self.assertThat(tries, LessThan(10))
89
90- #check the text to make sure it's the same
91+ # check the text to make sure it's the same
92 wordValue = tiles[0].containedLetter + tiles[1].containedLetter
93 word = self.main_view.get_word_label()
94 self.assertEquals(word.text, wordValue)
95
96- #click to complete word
97+ # click to complete word
98 validWord = word.isValid
99 self.pointing_device.click_object(word)
100
101- #depending on if the property isValid is true or not,
102- #score should increase or stay the same after completion
103- #we don't need to get fancy, since the start value is 0;
104- #check for zero or non-zero score
105+ # depending on if the property isValid is true or not,
106+ # score should increase or stay the same after completion
107+ # we don't need to get fancy, since the start value is 0;
108+ # check for zero or non-zero score
109 main_score_label = self.main_view.get_main_score_label()
110 if validWord:
111 self.assertNotEquals(main_score_label.text, '0')

Subscribers

People subscribed via source and target branches