unittest discover logging all logging to same file] code example
Example: python disable logging on unittest
# test.py
import logging
logging.disable(logging.CRITICAL)
# test.py
import logging
logging.disable(logging.CRITICAL)