Files
crypto_monitor_user/tests/test_flask_access_log_lib.py
T
dekun 53863559f4 Initialize crypto_monitor_user (user edition) from monitor codebase.
Retarget git remote, install path, and deploy docs from crypto_monitor to crypto_monitor_user.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 16:18:13 +08:00

18 lines
466 B
Python

"""silence_werkzeug_access_log 烟雾测试."""
import logging
import unittest
from lib.common.flask_access_log_lib import silence_werkzeug_access_log
class TestSilenceAccessLog(unittest.TestCase):
def test_sets_warning_level(self):
log = logging.getLogger("werkzeug")
log.setLevel(logging.INFO)
silence_werkzeug_access_log()
self.assertGreaterEqual(log.level, logging.WARNING)
if __name__ == "__main__":
unittest.main()