Edgewall Software

Opened 7 years ago

Last modified 4 years ago

#12663 closed defect

Test failures running individual tests in trac.ticket.tests.notification — at Initial Version

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.3.2
Component: ticket system Version:
Severity: normal Keywords: notification
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

There are test failures executing individual test cases in trac.ticket.tests.notification. The entire suite must be run for the tests to pass.

$python -m unittest trac.ticket.tests.notification.test_suite
...............................................................
----------------------------------------------------------------------
Ran 63 tests in 7.089s

OK
$python -m unittest trac.ticket.tests.notification
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
======================================================================
ERROR: test_author_full_name (trac.ticket.tests.notification.AttachmentNotificationTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "trac/ticket/tests/notification.py", line 1551, in setUp
    config_smtp(self.env)
  File "trac/ticket/tests/notification.py", line 76, in config_smtp
    env.config.set('notification', 'smtp_server', notifysuite.smtpd.host)
AttributeError: 'NoneType' object has no attribute 'smtpd'
...

----------------------------------------------------------------------
Ran 63 tests in 0.526s

FAILED (errors=63)
$python -m unittest trac.ticket.tests.notification.RecipientTestCase
EEEEEEEEEEEE
======================================================================
ERROR: test_always_notify_owner (trac.ticket.tests.notification.RecipientTestCase)
The `always_notify_owner` option.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "trac/ticket/tests/notification.py", line 86, in setUp
    config_smtp(self.env)
  File "trac/ticket/tests/notification.py", line 76, in config_smtp
    env.config.set('notification', 'smtp_server', notifysuite.smtpd.host)
AttributeError: 'NoneType' object has no attribute 'smtpd'
...

----------------------------------------------------------------------
Ran 12 tests in 0.111s

FAILED (errors=12)
$python -m unittest trac.ticket.tests.notification.RecipientTestCase.test_no_recipients
E
======================================================================
ERROR: test_no_recipients (trac.ticket.tests.notification.RecipientTestCase)
No recipient case
----------------------------------------------------------------------
Traceback (most recent call last):
  File "trac/ticket/tests/notification.py", line 86, in setUp
    config_smtp(self.env)
  File "trac/ticket/tests/notification.py", line 76, in config_smtp
    env.config.set('notification', 'smtp_server', notifysuite.smtpd.host)
AttributeError: 'NoneType' object has no attribute 'smtpd'

----------------------------------------------------------------------
Ran 1 test in 0.013s

FAILED (errors=1)

Change History (0)

Note: See TracTickets for help on using tickets.