Merge lp:~osomon/notes-app/remove-useless-lambdas into lp:notes-app

Proposed by Olivier Tilloy
Status: Merged
Approved by: Olivier Tilloy
Approved revision: 187
Merged at revision: 188
Proposed branch: lp:~osomon/notes-app/remove-useless-lambdas
Merge into: lp:notes-app
Diff against target: 21 lines (+2/-2)
1 file modified
tests/autopilot/notes_app/tests/test_create.py (+2/-2)
To merge this branch: bzr merge lp:~osomon/notes-app/remove-useless-lambdas
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Günter Schwann (community) Approve
Review via email: mp+188070@code.launchpad.net

Commit message

Remove a couple of lambda calls, useless because the assertion is on a property.

To post a comment you must log in.
Revision history for this message
Günter Schwann (schwann) wrote :

ok

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) 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)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/notes_app/tests/test_create.py'
2--- tests/autopilot/notes_app/tests/test_create.py 2013-07-29 20:53:21 +0000
3+++ tests/autopilot/notes_app/tests/test_create.py 2013-09-27 14:43:00 +0000
4@@ -101,7 +101,7 @@
5 note_y + content_h + ((note_h - content_h) / 2))
6 self.pointing_device.click()
7
8- self.assertThat(lambda: content.activeFocus, Eventually(Equals(True)))
9+ self.assertThat(content.activeFocus, Eventually(Equals(True)))
10
11 def test_note_focus_on_second_click_inside(self):
12 notes = self.main_window.get_notes()
13@@ -125,7 +125,7 @@
14 content_x + content_w / 2, content_y + content_h / 2)
15 self.pointing_device.click()
16
17- self.assertThat(lambda: content.activeFocus, Eventually(Equals(True)))
18+ self.assertThat(content.activeFocus, Eventually(Equals(True)))
19
20 def test_note_unfocused_when_collapsed(self):
21 header = self.main_window.get_header()

Subscribers

People subscribed via source and target branches