beeref/tests/conftest.py
2021-05-14 13:37:44 +02:00

12 lines
437 B
Python

from unittest.mock import MagicMock
def pytest_configure(config):
# Ignore logging configuration for BeeRef during test runs. This
# avoids logging to the regular log file and spamming test output
# with debug messages.
#
# This needs to be done before the application code is even loaded since
# logging configuration happens on module level
import logging.config
logging.config.dictConfig = MagicMock