Edgewall Software
Modify

Opened 2 years ago

Closed 2 years ago

Last modified 2 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.

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, 2 years ago

Milestone: topic-multiproject1.3.2

comment:2 by Ryan J Ollos, 2 years ago

Proposed changes in [d030e0d88/rjollos.git].

comment:3 by Ryan J Ollos, 2 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 2 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 as closed 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.