Edgewall Software

Opened 10 years ago

Closed 10 years ago

#11603 closed defect (fixed)

Error running tests in trac.ticket.tests.model — at Version 1

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

Change History (1)

comment:1 by Ryan J Ollos, 10 years ago

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

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

Note: See TracTickets for help on using tickets.