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 #467 (closed enhancement: wontfix)

Opened 13 years ago

Last modified 12 years ago

[PATCH] Move explicit servert start into separate function in turbogears.testutil

Reported by: anonymous Owned by: anonymous
Priority: normal Milestone:
Component: TurboGears Version:
Severity: minor Keywords:


While testing your model with turbogears.testutil, it's quite annoying that CherryPy server starts each time even if you don't need it.

Supplied patch moves explicit server start into separate function.


testutil.diff Download (958 bytes) - added by anonymous 13 years ago.

Change History

Changed 13 years ago by anonymous

comment:1 Changed 13 years ago by kevin

  • Status changed from new to closed
  • Resolution set to wontfix

Note that the CherryPy? server doesn't truly "start" (initOnly=True).

The reason that this wasn't in a separate function is that the tests that run expect CherryPy? to be in a usable state. Perhaps if create_request and call each called a function that would call server.start only once, that would be a fine solution.

Note: See TracTickets for help on using tickets.