Autopilot test failures

Bug #1248178 reported by Łukasz Zemczak on 2013-11-05
This bug report is a duplicate of:  Bug #1276788: Full swipes causes jumps in time. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Calendar App
Undecided
Unassigned

Bug Description

When running the latest calendar-app on Ubuntu Touch Trusty image 11, we get 4 consistent failures every time. Autopilot 1.3 used.

The error log is as follows:

======================================================================
ERROR: calendar_app.tests.test_yearview.TestYearView.test_current_day_is_selected(with touch)
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/home/phablet/autopilot/calendar_app/tests/test_yearview.py", line 60, in test_current_day_is_selected
current_month = months[datetime.now().month - 1]
IndexError: list index out of range

======================================================================
FAIL: calendar_app.tests.test_weekview.TestWeekView.test_show_previous_weeks(with touch)
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/home/phablet/autopilot/calendar_app/tests/test_weekview.py", line 76, in test_show_previous_weeks
self.change_week(-1)
File "/home/phablet/autopilot/calendar_app/tests/test_weekview.py", line 93, in change_week
self.assertThat(day_start, Equals(expected_day_start))
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 417, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: !=:
reference = datetime.datetime(2013, 10, 28, 0, 0)
actual = datetime.datetime(2013, 10, 27, 0, 0)

======================================================================
FAIL: calendar_app.tests.test_weekview.TestWeekView.test_current_week_is_selected(with touch)
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/home/phablet/autopilot/calendar_app/tests/test_weekview.py", line 62, in test_current_week_is_selected
self.assertThat(current_day, Equals(expected_day))
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 417, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: 4 != 3

======================================================================
FAIL: calendar_app.tests.test_weekview.TestWeekView.test_show_next_weeks(with touch)
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
File "/home/phablet/autopilot/calendar_app/tests/test_weekview.py", line 72, in test_show_next_weeks
self.change_week(1)
File "/home/phablet/autopilot/calendar_app/tests/test_weekview.py", line 93, in change_week
self.assertThat(day_start, Equals(expected_day_start))
File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 417, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: !=:
reference = datetime.datetime(2013, 11, 11, 0, 0)
actual = datetime.datetime(2013, 11, 10, 0, 0)

Ran 17 tests in 640.816s
FAILED (failures=4)

David Planella (dpm) wrote :

Is this bug still happening?

Changed in ubuntu-calendar-app:
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers