Source

CherryPy / cherrypy / test / test_states.py

Author Commit Message Labels Comments Date
Jason R. Coombs
Re-saved with excess whitespace removed. Removed unused import.
Branches
cherrypy-3.2.x
Robert Brewer
Better message when test_states fails due to slow autoreload
Robert Brewer
Bye bye, py2/3.
Robert Brewer
Freeow. The magic cherrypy/_cpcompat.py module to take all our py3k fears away.
Robert Brewer
Removed test.py etc.
Joseph Tate
Convert the tests to use nose instead of our own runner. This strips out much coverage and profiling (handled by nose) and lets you focus on writing tests. The biggest changes that have to be done in the tests classes is you have to put the "setup_server" method on the class(es) that need them when running. If you need it for multiple classes, you can use staticmethod() to attach it to multiple classes without using inheritance.
Robert Brewer
A couple syncs with python3.
Robert Brewer
Removed py3print.
Lakin Wecker
trunk - oops - these prints were mussed up.
Lakin Wecker
trunk - adding a py3util module that will normalize as many differences between this branch and the python3 branch as it can. First it includes a py3print call who's signature matches that of print in python3. Also removed a few byte strings of the form b''
Robert Brewer
A stray b''.
Lakin Wecker
trunk - porting the fixes to test_states from r2290.
Robert Brewer
Fixed a buglet in test_states.
Robert Brewer
Rework of test suite to start the engine once per module, and only for modules that have a 'setup_server' function. This allows us to include modules which do not need to start a server in the normal test.py testList and exercise them at every full run. See, for example, that test_bus and test_states are now included.
Robert Brewer
New helper.CPProcess class (moved from test_states), plus a bugfix to allow Ctrl-C to stop CP when running tests in --server mode.
Robert Brewer
Fixed sig handler unsubscribe test for Unix, plus an odd race condition in autoreload.
Robert Brewer
Test and fix for #826 (SignalHandler needs an unsubscribe). Need nix testing.
Robert Brewer
Fixed test_states for nix.
Robert Brewer
Fix for #828 (CherryPy should exit on SIGHUP if not daemonized). The tests need to be exercised on Unix.
Robert Brewer
Some test_states love. Also, cherryd grew an --import option.
Robert Brewer
Moved all bus plugins onto the engine object itself, and fixed a couple bus details along the way.
Robert Brewer
Removing the last call to server.quickstart (which is deprecated).
Lakin Wecker
Parent processes in Daemonizer should not even attempt to clean up after themselves, so use os._exit(0) instead of sys.exit(0). Updated tests and documentation to reflect the fact that if the first forkin Daemonizer completes, the process return code will always be 0.
Robert Brewer
Fix for #751 (logging: Python file objects are not thread-safe). Whew. Finally got all the bus operations where I want em: 1. There's a new EXITING state 2. bus.block() waits for EXITING now instead of STOPPED, and also wait for all threads to exit, so the main thread doesn't exit (and run atexit callbacks) too early. 3. bus.exit() no longer calls sys.exit. Instead, exit is used to signal the main thread to unblock and terminate normally. This means some callers of stop need(ed) to be changed to call exit instead. …
Robert Brewer
Cosmetics.
Tags
cherrypy-3.1.0beta2
Robert Brewer
Trunk fix for #752 (Return cherrypy.server to a single-server model): 1. Change restsrv.servers.ServerManager (multiple httpservers) to ServerAdapter (one httpserver). 2. cherrypy.server is now a subclass of ServerAdapter, and is subscribed by default. 3. Made several plugin methods idempotent that weren't before. 4. Added names to win32 bus state events. Also fixed a buglet in win32 block(). 5. Added repr to wspbus.states.State objects. 6. Did ''not'' change …
Lakin Wecker
Adding a unit test which exposes a bug whereby CP exit codes are mistakenly set to 0 by Daemonizer even if there are pending startup errors waiting to be raised.
Robert Brewer
New test and fix for errors during engine.start().
Robert Brewer
Some fixes to test_states.
Lakin Wecker
Test suite: added a test which re-produces the bug with daemonize that's documented in #646.
  1. Prev
  2. 1
  3. 2
  4. 3
  5. Next