lib-not-dr/test/logger/formatter.py

25 lines
606 B
Python
Raw Normal View History

2023-10-25 00:36:57 +08:00
# -------------------------------
# Difficult Rocket
# Copyright © 2020-2023 by shenjackyuanjie 3695888@qq.com
# All rights reserved
# -------------------------------
import unittest
from lib_not_dr.logger.formatter import BaseFormatter, TimeFormatter, LevelFormatter
class FormatterTest(unittest.TestCase):
def test_formatter(self):
formatter = BaseFormatter()
formatter.info()
def test_time_formatter(self):
formatter = TimeFormatter()
formatter.info()
def test_level_formatter(self):
formatter = LevelFormatter()
formatter.info()