摘要: 问题1:使用pytest-xdsit 插件运行后 logging 模块日志不会输出的问题 背景:自己写的日志打印模块,用pytest -n=auto 后日志就不会输出 # tools.set_loggging.py import logging.handlers import sys from co 阅读全文
posted @ 2022-11-30 20:49 chuangzhou 阅读(104) 评论(1) 推荐(0) 编辑
摘要: pytest_assertrepr_compare(op,left,right): class Foo: def __init__(self,value): self.value = value def test_foo_commpare(): f1 = Foo(1) f2 = Foo(2) ass 阅读全文
posted @ 2022-11-30 19:58 chuangzhou 阅读(54) 评论(0) 推荐(0) 编辑