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
=== modified file 'tests/autopilot/dropping_letters_app/emulators.py'
--- tests/autopilot/dropping_letters_app/emulators.py 2013-10-28 13:22:42 +0000
+++ tests/autopilot/dropping_letters_app/emulators.py 2014-06-27 15:53:00 +0000
@@ -37,15 +37,16 @@
37 return item37 return item
3838
39 def get_help_popover(self):39 def get_help_popover(self):
40 #checking the popup seems to fail40 # checking the popup seems to fail
41 # -- https://bugs.launchpad.net/autopilot/+bug/1195141?41 # -- https://bugs.launchpad.net/autopilot/+bug/1195141?
42 #we can't get the popup by objectname for ??42 # we can't get the popup by objectname for ??
43 #this works OK because at the moment, there is only one popup43 # this works OK because at the moment, there is only one popup
44 # -- needs fixed44 # -- needs fixed
45 #item = self.select_single('Label', objectname='helpsheetpopoverlabel')45 # item = self.select_single('Label',
46 #item = self.select_single('QQuickRectangle',46 # objectname='helpsheetpopoverlabel')
47 # item = self.select_single('QQuickRectangle',
47 # objectname='helpsheetpopoverbox')48 # objectname='helpsheetpopoverbox')
48 #item = self.select_single('Popover', objectname='helpsheetpopover')49 # item = self.select_single('Popover', objectname='helpsheetpopover')
4950
50 item = self.wait_select_single('Popover')51 item = self.wait_select_single('Popover')
51 return item52 return item
5253
=== modified file 'tests/autopilot/dropping_letters_app/tests/test_dropping_letters.py'
--- tests/autopilot/dropping_letters_app/tests/test_dropping_letters.py 2013-10-28 13:22:42 +0000
+++ tests/autopilot/dropping_letters_app/tests/test_dropping_letters.py 2014-06-27 15:53:00 +0000
@@ -38,18 +38,18 @@
3838
39 def test_intro_screen(self):39 def test_intro_screen(self):
40 helpbutton = self.main_view.get_help_button()40 helpbutton = self.main_view.get_help_button()
41 #check help button popup41 # check help button popup
42 self.assertTrue(helpbutton.visible)42 self.assertTrue(helpbutton.visible)
4343
44 #open the popup44 # open the popup
45 self.pointing_device.click_object(helpbutton)45 self.pointing_device.click_object(helpbutton)
4646
47 #check and ensure help popover appears47 # check and ensure help popover appears
48 helpPopover = self.main_view.get_help_popover()48 helpPopover = self.main_view.get_help_popover()
49 properties = helpPopover.get_properties()49 properties = helpPopover.get_properties()
50 self.assertTrue(properties["visible"])50 self.assertTrue(properties["visible"])
5151
52 #check and ensure help popover disappears52 # check and ensure help popover disappears
53 self.pointing_device.click_object(helpbutton)53 self.pointing_device.click_object(helpbutton)
54 self.assertThat(self.main_view.get_many_popover,54 self.assertThat(self.main_view.get_many_popover,
55 Eventually(Equals([])))55 Eventually(Equals([])))
@@ -62,23 +62,23 @@
62 self.assertEquals(main_score_label.text, '0')62 self.assertEquals(main_score_label.text, '0')
6363
64 def test_finishing_a_word(self):64 def test_finishing_a_word(self):
65 #start game and close toolbar65 # start game and close toolbar
66 toolbar = self.main_view.open_toolbar()66 toolbar = self.main_view.open_toolbar()
67 toolbar.click_button('new_game')67 toolbar.click_button('new_game')
68 self._assert_game_screen()68 self._assert_game_screen()
69 toolbar = self.main_view.close_toolbar()69 toolbar = self.main_view.close_toolbar()
7070
71 #check for letters falling71 # check for letters falling
72 #select first 2 letters; wait for 3 letters to appear72 # select first 2 letters; wait for 3 letters to appear
73 #so first 2 are settled for clicking73 # so first 2 are settled for clicking
74 tiles = self.main_view.get_letter_tiles()74 tiles = self.main_view.get_letter_tiles()
75 while len(tiles) < 3:75 while len(tiles) < 3:
76 tiles = self.main_view.get_letter_tiles()76 tiles = self.main_view.get_letter_tiles()
7777
78 #click the accumlated letters78 # click the accumlated letters
79 #check and make sure they get selected79 # check and make sure they get selected
80 #add tries as a control to avoid infinite loop80 # add tries as a control to avoid infinite loop
81 #and provide better failure feedback81 # and provide better failure feedback
82 tries = 082 tries = 0
83 self.pointing_device.click_object(tiles[0])83 self.pointing_device.click_object(tiles[0])
84 tileProperties = tiles[0].get_properties()84 tileProperties = tiles[0].get_properties()
@@ -101,19 +101,19 @@
101101
102 self.assertThat(tries, LessThan(10))102 self.assertThat(tries, LessThan(10))
103103
104 #check the text to make sure it's the same104 # check the text to make sure it's the same
105 wordValue = tiles[0].containedLetter + tiles[1].containedLetter105 wordValue = tiles[0].containedLetter + tiles[1].containedLetter
106 word = self.main_view.get_word_label()106 word = self.main_view.get_word_label()
107 self.assertEquals(word.text, wordValue)107 self.assertEquals(word.text, wordValue)
108108
109 #click to complete word109 # click to complete word
110 validWord = word.isValid110 validWord = word.isValid
111 self.pointing_device.click_object(word)111 self.pointing_device.click_object(word)
112112
113 #depending on if the property isValid is true or not,113 # depending on if the property isValid is true or not,
114 #score should increase or stay the same after completion114 # score should increase or stay the same after completion
115 #we don't need to get fancy, since the start value is 0;115 # we don't need to get fancy, since the start value is 0;
116 #check for zero or non-zero score116 # check for zero or non-zero score
117 main_score_label = self.main_view.get_main_score_label()117 main_score_label = self.main_view.get_main_score_label()
118 if validWord:118 if validWord:
119 self.assertNotEquals(main_score_label.text, '0')119 self.assertNotEquals(main_score_label.text, '0')

Subscribers

People subscribed via source and target branches