Edgewall Software
Modify

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#12812 closed enhancement (fixed)

Move test helpers to test.py modules

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.3.2
Component: general Version:
Severity: normal Keywords: test
Cc: Branch:
Release Notes:
API Changes:

Ticket test helper methods can be found in the trac.ticket.test module.

Internal Changes:

Description

This is a continuation of #12211. In r14840, we expanded on the trac.test convention by adding a test.py to the trac.wiki package. With that in mind, I think it makes sense to add insert_ticket to trac.ticket.test. Similarly, we could add other helpers to test.py files in the various packages.

Attachments (0)

Change History (3)

comment:1 by Ryan J Ollos, 7 years ago

Milestone: topic-multiproject1.3.2

comment:2 by Ryan J Ollos, 7 years ago

Proposed changes in [d030e0d88/rjollos.git].

comment:3 by Ryan J Ollos, 7 years ago

API Changes: modified (diff)
Resolution: fixed
Status: assignedclosed

Eventually I'd like to have mocks for the version control system in trac.versioncontrol.test, since it's often difficult to develop tests against a repository and writing a mock for each component is a bit of work and requires a lot of knowledge of the API.

Committed to trunk in r15921.

Last edited 7 years ago by Ryan J Ollos (previous) (diff)

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.