Merge lp:~om26er/ubuntu-calculator-app/fixa into lp:~boiko/ubuntu-calculator-app/fix_autopilot_tests

Proposed by Omer Akram
Status: Merged
Merged at revision: 142
Proposed branch: lp:~om26er/ubuntu-calculator-app/fixa
Merge into: lp:~boiko/ubuntu-calculator-app/fix_autopilot_tests
Diff against target: 14 lines (+3/-0)
1 file modified
tests/autopilot/ubuntu_calculator_app/tests/test_simple_page.py (+3/-0)
To merge this branch: bzr merge lp:~om26er/ubuntu-calculator-app/fixa
Reviewer Review Type Date Requested Status
Gustavo Pichorim Boiko Pending
Review via email: mp+181175@code.launchpad.net

Commit message

Fixes a test

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/ubuntu_calculator_app/tests/test_simple_page.py'
2--- tests/autopilot/ubuntu_calculator_app/tests/test_simple_page.py 2013-08-19 18:23:01 +0000
3+++ tests/autopilot/ubuntu_calculator_app/tests/test_simple_page.py 2013-08-20 23:49:33 +0000
4@@ -32,7 +32,10 @@
5
6 def _delete_old_calculations(self):
7 while self.main_view.get_number_of_screens() > 1:
8+ num_of_screens = self.main_view.get_number_of_screens()
9 self.main_view.delete_previous_calculation(0, confirm=True)
10+ self.assertThat(lambda:
11+ self.main_view.get_number_of_screens(), Eventually(Equals(num_of_screens-1)))
12
13 def test_operation_after_clear(self):
14 """ Test that after clearing one calculation, the next is still correct

Subscribers

People subscribed via source and target branches