viewer unit tests are broken

Bug #1047149 reported by Matt Fischer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Accomplishments Viewer
Fix Committed
Undecided
Chris Wayne

Bug Description

One of the two viewer unit tests is broken and the unit tests are not being run during builds (which is how they broke in the first place).

mfisch@caprica:~/experiments/accomps/accomplishments-viewer/master/tests$ python ./test_example.py
F
======================================================================
FAIL: test_AboutAccomplishmentsViewerDialog_members (__main__.TestExample)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "./test_example.py", line 23, in test_AboutAccomplishmentsViewerDialog_members
    self.assertEqual(self.AboutAccomplishmentsViewerDialog_members, public_members)
AssertionError: Lists differ: ['AboutAccomplishmentsViewerDi... != ['AboutAccomplishmentsViewerDi...

First differing element 1:
get_builder
AboutDialog

Second list contains 4 additional elements.
First extra element 4:
locale

- ['AboutAccomplishmentsViewerDialog', 'get_builder', 'gettext', 'Gtk']
+ ['AboutAccomplishmentsViewerDialog',
+ 'AboutDialog',
+ 'dbusapi',
+ 'gettext',
+ 'locale',
+ 'locale_dir',
+ 'logger',
+ 'logging']

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (failures=1)

Tags: bitesize
Chris Wayne (cwayne)
Changed in ubuntu-accomplishments-viewer:
assignee: nobody → Chris Wayne (cwayne18)
Matt Fischer (mfisch)
Changed in ubuntu-accomplishments-viewer:
status: New → In Progress
Revision history for this message
Chris Wayne (cwayne) wrote :

The unit test itself has been fixed, although the unit tests require the daemon to be installed to run during the build. Since the daemon is still in a PPA we can't enable this yet.

Changed in ubuntu-accomplishments-viewer:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.