Python coloredlogs.increase_verbosity() Examples
The following are 1
code examples of coloredlogs.increase_verbosity().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
coloredlogs
, or try the search function
.
Example #1
Source File: tests.py From py2deb with MIT License | 5 votes |
def setUpModule(): """ Prepare the test suite. This function does two things: 1. Sets up verbose logging to the terminal. When a test fails the logging output can help to perform a post-mortem analysis of the failure in question (even when its hard to reproduce locally). This is especially useful when debugging remote test failures, whether they happened on Travis CI or a user's local system. 2. Creates temporary directories where the pip download cache and the pip-accel binary cache are located. Isolating the pip-accel binary cache from the user's system is meant to ensure that the tests are as independent from the user's system as possible. The function :func:`tearDownModule` is responsible for cleaning up the temporary directory after the test suite finishes. """ # Initialize verbose logging to the terminal. coloredlogs.install() coloredlogs.increase_verbosity() # Create temporary directories to store the pip download cache and # pip-accel's binary cache, to make sure these tests run isolated from the # rest of the system. os.environ['PIP_DOWNLOAD_CACHE'] = create_temporary_directory() os.environ['PIP_ACCEL_CACHE'] = create_temporary_directory()