Source

CherryPy / cherrypy / test / test_states.py

Author Commit Message Labels Comments Date
Robert Brewer
Fix for #374 (reduce license boilerplate to a single LICENSE.txt file).
Robert Brewer
More state tests (onStart/Stop tests). Also made it more explicit that onStop's are called even if there's no HTTP server.
Robert Brewer
Final cleanups for [698] and #321. cherrypy.server is now an instance of cherrpy._cpserver.Server, instead of a module.
Robert Brewer
Ugly fix for #321. cherrypy.server could really use some encapsulation now.
Robert Brewer
Another state test: restart within a page handler.
Robert Brewer
Phew. Tracked down all possible occurrences of KeyboardInterrupt and trapped them appropriately. There's still a problem in test_states when using the CherryPyHTTPServer (it hangs during KeyboardInterrupt testing), but all other servers pass. Maybe *this* fixes #321. ;)
Robert Brewer
More server state tests and fixes:
Robert Brewer
New test_states module for testing server start/stop/restart, as well as NotReady, KeyboardInterrupts and SystemExit, etc.