cherrypy.test.test_logging module

Basic tests for the CherryPy core: request handling.

cherrypy.test.test_logging.access_log_file(tmp_path_factory)[source]
cherrypy.test.test_logging.configure_server(access_log_file, error_log_file)[source]
cherrypy.test.test_logging.error_log_file(tmp_path_factory)[source]
cherrypy.test.test_logging.log_tracker(access_log_file)[source]
cherrypy.test.test_logging.server(configure_server)[source]
cherrypy.test.test_logging.shutdown_server()[source]
cherrypy.test.test_logging.test_UUIDv4_parameter_log_format(log_tracker, monkeypatch, server)[source]

Test rendering of UUID4 within access log.

cherrypy.test.test_logging.test_custom_log_format(log_tracker, monkeypatch, server)[source]

Test a customized access_log_format string, which is a feature of _cplogging.LogManager.access().

cherrypy.test.test_logging.test_escaped_output(log_tracker, server)[source]
cherrypy.test.test_logging.test_normal_return(log_tracker, server)[source]
cherrypy.test.test_logging.test_normal_yield(log_tracker, server)[source]
cherrypy.test.test_logging.test_timez_log_format(log_tracker, monkeypatch, server)[source]

Test a customized access_log_format string, which is a feature of _cplogging.LogManager.access().

cherrypy.test.test_logging.test_tracebacks(server, caplog)[source]