when i run trial i get test failures

Bug #338044 reported by Elliot Murphy
2
Affects Status Importance Assigned to Milestone
Tarmac
Fix Released
High
Paul Hummer

Bug Description

When I run trial I get test failures. Is there any setup that I need to do to be able to run the test suite?

tarmac$ trial tarmac
/usr/lib/python2.6/dist-packages/twisted/persisted/sob.py:12: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import os, md5, sys
/usr/lib/python2.6/dist-packages/twisted/python/filepath.py:12: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  import sha
tarmac.tests.test_scripts
  TestTarmacLander
    test_find_commit_mesage_from_message_body ... [ERROR]
    test_find_commit_message_from_title ... [ERROR]
    test_find_commit_message_no_commit_message ... [ERROR]
    test_lander_dry_run ... [OK]
    test_lander_project ... [OK]

===============================================================================
[ERROR]: tarmac.tests.test_scripts.TestTarmacLander.test_find_commit_mesage_from_message_body

Traceback (most recent call last):
  File "/usr/lib/python2.6/unittest.py", line 279, in run
    testMethod()
  File "/home/emurphy/canonical/ubuntuone/tarmac/tarmac/tests/test_scripts.py", line 61, in test_find_commit_mesage_from_message_body
    commit_message = script._find_commit_message(comments)
  File "/home/emurphy/canonical/ubuntuone/tarmac/tarmac/bin.py", line 45, in _find_commit_message
    if comment.title.lower().startswith('commit message'):
exceptions.AttributeError: 'MockBMPComment' object has no attribute 'title'
===============================================================================
[ERROR]: tarmac.tests.test_scripts.TestTarmacLander.test_find_commit_message_from_title

Traceback (most recent call last):
  File "/usr/lib/python2.6/unittest.py", line 279, in run
    testMethod()
  File "/home/emurphy/canonical/ubuntuone/tarmac/tarmac/tests/test_scripts.py", line 51, in test_find_commit_message_from_title
    commit_message = script._find_commit_message(comments)
  File "/home/emurphy/canonical/ubuntuone/tarmac/tarmac/bin.py", line 45, in _find_commit_message
    if comment.title.lower().startswith('commit message'):
exceptions.AttributeError: 'MockBMPComment' object has no attribute 'title'
===============================================================================
[ERROR]: tarmac.tests.test_scripts.TestTarmacLander.test_find_commit_message_no_commit_message

Traceback (most recent call last):
  File "/usr/lib/python2.6/unittest.py", line 279, in run
    testMethod()
  File "/home/emurphy/canonical/ubuntuone/tarmac/tarmac/tests/test_scripts.py", line 71, in test_find_commit_message_no_commit_message
    script._find_commit_message, comments)
  File "/usr/lib/python2.6/unittest.py", line 336, in failUnlessRaises
    callableObj(*args, **kwargs)
  File "/home/emurphy/canonical/ubuntuone/tarmac/tarmac/bin.py", line 45, in _find_commit_message
    if comment.title.lower().startswith('commit message'):
exceptions.AttributeError: 'MockBMPComment' object has no attribute 'title'
-------------------------------------------------------------------------------

Related branches

Paul Hummer (rockstar)
Changed in tarmac:
assignee: nobody → rockstar
importance: Undecided → High
status: New → Fix Committed
Paul Hummer (rockstar)
Changed in tarmac:
milestone: none → tarmac-0.2
Paul Hummer (rockstar)
Changed in tarmac:
status: Fix Committed → Fix Released
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.