How can I patch / mock logging.getlogger()

后端 未结 0 357
生来不讨喜
生来不讨喜 2021-02-11 15:54

I have this code that I want to test:

log = logging.getLogger(__name__)


class A(object):
    def __init__(self):
        log.debug(\'Init\')

相关标签:
回答
  • 消灭零回复
提交回复
热议问题