Edgewall Software
Modify

Opened 11 years ago

Closed 11 years ago

#11603 closed defect (fixed)

Error running tests in trac.ticket.tests.model

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.0.2
Component: ticket system Version:
Severity: normal Keywords: unit tests
Cc: Branch:
Release Notes:

Fixed test execution failure when tests in trac.ticket.tests.model were executed directly.

API Changes:
Internal Changes:

Description

$ make test=trac/ticket/tests/model.py 
..........................................................E..........
======================================================================
ERROR: test_rename_milestone (__main__.MilestoneTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "trac/ticket/tests/model.py", line 1025, in test_rename_milestone
    attachment.insert('foo.txt', StringIO(), 0, 1)
  File "/home/user/Workspace/t11284/teo-rjollos.git/trac/attachment.py", line 311, in insert
    parent=get_resource_name(self.env, parent_resource)))
ResourceNotFound: milestone:OldName doesn't exist, can't create attachment

----------------------------------------------------------------------
Ran 69 tests in 0.916s

FAILED (errors=1)
make: *** [all] Error 1

Attachments (0)

Change History (1)

comment:1 by Ryan J Ollos, 11 years ago

Release Notes: modified (diff)
Resolution: fixed
Status: newclosed

Fix committed to 1.0-stable in [12793], merged to trunk in [12794:12795].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Ryan J Ollos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.