Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #223 (closed defect: fixed)

Opened 14 years ago

Last modified 12 years ago

util.createRequest needs to run() the request for request.headers to be set

Reported by: tim@… Owned by: anonymous
Priority: normal Milestone:
Component: TurboGears Version: 0.8
Severity: normal Keywords:


Using the testing utility to create a request (turbogears.tests.util.createRequest()) has a useful headers parameter. However the created request is never "run" which means that the request headers never get parsed into the headerMap, and in fact are not accessible from cherrypy.request.

So either the createRequest() function should return the request (this would be very backwards compatible, as it currently has no return value) or it should run() the request.

Change History

comment:1 Changed 13 years ago by oefe

  • Status changed from new to closed
  • Resolution set to fixed
  • Component changed from CherryPy to TurboGears

Since r508, it in fact run()s the request, so I think this should be set to fixed

Note: See TracTickets for help on using tickets.