I am using a simple unit test based test runner to test my Django application.
My application itself is configured to use a basic logger in settings.py using:
You can put this in the top level directory for unit tests __init__.py file. This will disable logging globally in the unit test suite.
__init__.py
# tests/unit/__init__.py import logging logging.disable(logging.CRITICAL)