Difficult-Rocket/test/utils/loggers.py

23 lines
608 B
Python
Raw Normal View History

# -------------------------------
# Difficult Rocket
2023-01-20 14:08:12 +08:00
# Copyright © 2020-2023 by shenjackyuanjie 3695888@qq.com
# All rights reserved
# -------------------------------
import unittest
2022-10-02 22:24:38 +08:00
# from libs.utils.build import logger as c_logger
from trytry.c.logger import logger as py_logger
class LoggerTest(unittest.TestCase):
2022-10-02 22:24:38 +08:00
def check_a_logger(self, logger: py_logger.Logger, config: dict):
self.assertEqual(logger.trace('aaaa trace'), config)
logger.fine('ruaaa fine')
logger.debug()
def test_1_py_logger(self):
...
2022-10-02 22:24:38 +08:00
# def test_2_c_logger(self):
# ...