mirror of
https://github.com/rbreu/beeref.git
synced 2026-03-11 08:54:28 +00:00
12 lines
437 B
Python
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
|