How can I patch / mock logging.getlogger()

后端 未结 0 554
野性不改
野性不改 2021-02-11 15:36

I have this code that I want to test:

log = logging.getLogger(__name__)


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

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