Merge lp:~thomir-deactivatedaccount/ubuntu-calendar-app/trunk-fix-ap1.4-errors into lp:ubuntu-calendar-app

Proposed by Thomi Richards
Status: Merged
Merged at revision: 168
Proposed branch: lp:~thomir-deactivatedaccount/ubuntu-calendar-app/trunk-fix-ap1.4-errors
Merge into: lp:ubuntu-calendar-app
Diff against target: 54 lines (+4/-7)
4 files modified
tests/autopilot/calendar_app/tests/test_dayview.py (+1/-2)
tests/autopilot/calendar_app/tests/test_monthview.py (+1/-1)
tests/autopilot/calendar_app/tests/test_weekview.py (+1/-2)
tests/autopilot/calendar_app/tests/test_yearview.py (+1/-2)
To merge this branch: bzr merge lp:~thomir-deactivatedaccount/ubuntu-calendar-app/trunk-fix-ap1.4-errors
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Needs Fixing
Ubuntu Calendar Developers Pending
Review via email: mp+194431@code.launchpad.net

Commit message

Fix errors due to the change to autopilot 1.4.

Description of the change

Fix errors due to the change to autopilot 1.4.

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)
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

I think this should be combined with https://code.launchpad.net/~elopio/ubuntu-calendar-app/autopilot-1.4/+merge/192631 which lacks the test_dayview.py change but has other updates.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/calendar_app/tests/test_dayview.py'
2--- tests/autopilot/calendar_app/tests/test_dayview.py 2013-10-29 20:55:31 +0000
3+++ tests/autopilot/calendar_app/tests/test_dayview.py 2013-11-08 01:43:36 +0000
4@@ -76,8 +76,7 @@
5
6 for i in xrange(1, 5):
7 self.main_view.swipe_view(direction, self.day_view, x_pad=0.15)
8- current_day = datetime.datetime.fromtimestamp(
9- self.day_view.currentDay)
10+ current_day = self.day_view.currentDay.datetime
11
12 expected_day = (now + datetime.timedelta(
13 days=(i * direction)))
14
15=== modified file 'tests/autopilot/calendar_app/tests/test_monthview.py'
16--- tests/autopilot/calendar_app/tests/test_monthview.py 2013-10-13 12:34:08 +0000
17+++ tests/autopilot/calendar_app/tests/test_monthview.py 2013-11-08 01:43:36 +0000
18@@ -24,7 +24,7 @@
19
20 def get_currentDayStart(self):
21 month_view = self.main_view.get_month_view()
22- return datetime.fromtimestamp(month_view.currentMonth)
23+ return month_view.currentMonth.datetime
24
25 def change_month(self, delta):
26 month_view = self.main_view.get_month_view()
27
28=== modified file 'tests/autopilot/calendar_app/tests/test_weekview.py'
29--- tests/autopilot/calendar_app/tests/test_weekview.py 2013-10-28 21:08:48 +0000
30+++ tests/autopilot/calendar_app/tests/test_weekview.py 2013-11-08 01:43:36 +0000
31@@ -81,8 +81,7 @@
32
33 for i in xrange(1, 5):
34 self.main_view.swipe_view(direction, self.week_view, x_pad=0.15)
35- day_start = datetime.datetime.fromtimestamp(
36- self.week_view.dayStart)
37+ day_start = self.week_view.dayStart.datetime
38
39 expected_day_start = current_day_start + datetime.timedelta(
40 days=(i * 7 * direction))
41
42=== modified file 'tests/autopilot/calendar_app/tests/test_yearview.py'
43--- tests/autopilot/calendar_app/tests/test_yearview.py 2013-10-28 21:08:48 +0000
44+++ tests/autopilot/calendar_app/tests/test_yearview.py 2013-11-08 01:43:36 +0000
45@@ -83,8 +83,7 @@
46
47 for i in xrange(1, how_many):
48 self.main_view.swipe_view(direction, self.year_view, x_pad=0.15)
49- selected_year = datetime.fromtimestamp(
50- self.year_view.currentYear).year
51+ selected_year = self.year_view.currentYear.year
52
53 self.assertThat(
54 selected_year, Equals(current_year + (i * direction)))

Subscribers

People subscribed via source and target branches

to status/vote changes: