← Back to team overview

ubuntu-touch-coreapps-reviewers team mailing list archive

[Merge] lp:~popey/ubuntu-calendar-app/fix_weekview into lp:ubuntu-calendar-app

 

Alan Pope  has proposed merging lp:~popey/ubuntu-calendar-app/fix_weekview into lp:ubuntu-calendar-app.

Requested reviews:
  Ubuntu Calendar Developers (ubuntu-calendar-dev)

For more details, see:
https://code.launchpad.net/~popey/ubuntu-calendar-app/fix_weekview/+merge/260689

This test skips forward 4 weeks in the week view then checks to make sure the month name / year number has changed. This week that won't happen because June 2015 has 5 weeks, not 4. Changed test to skip forward 6 weeks to guarantee it always changes month.
-- 
Your team Ubuntu Calendar Developers is requested to review the proposed merge of lp:~popey/ubuntu-calendar-app/fix_weekview into lp:ubuntu-calendar-app.
=== modified file 'tests/autopilot/calendar_app/tests/test_weekview.py'
--- tests/autopilot/calendar_app/tests/test_weekview.py	2015-05-22 08:51:59 +0000
+++ tests/autopilot/calendar_app/tests/test_weekview.py	2015-06-01 09:18:46 +0000
@@ -92,7 +92,7 @@
         """Changing week across months should update the month"""
         header = self.app.main_view.get_header()
         before_month = self.app.main_view.get_month_year(header)
-        self.week_view.change_week(4)
+        self.week_view.change_week(6)
 
         after_month = self.app.main_view.get_month_year(header)
 


Follow ups