﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	branch	changelog	apichanges	internalchanges
12663	Test failures running individual tests in trac.ticket.tests.notification	Ryan J Ollos	Ryan J Ollos	"There are test failures executing individual test cases in `trac.ticket.tests.notification`. The entire suite must be run for the tests to pass.

{{{#!pycon
$python -m unittest trac.ticket.tests.notification.test_suite
...............................................................
----------------------------------------------------------------------
Ran 63 tests in 7.089s

OK
}}}

{{{#!pycon
$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)
}}}

{{{#!pycon
$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)
}}}

{{{#!pycon
$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)
}}}"	defect	closed	normal	1.3.2	ticket system		normal	fixed	notification					Use `setUpModule` and `tearDownModule` in `trac.ticket.tests.notification` to avoid test failures when running individual test cases rather than all tests in the module.
