cost 83 ms
pytest caplog LogCaptureFixture 在使用 logging.config.dictConfig() 时损坏 - pytest caplog LogCaptureFixture is broken when using logging.config.dictConfig()

几天来,我一直在围绕这个问题兜圈子,与开始时相比,我离解决方案还差得很远。 我已经审查了所有其他处理 pytest caplog fixture 的 stackoverflow 条目,我已经将我的问题缩小到使用logging.config.dictConfig() 我尝试了多种配置,有和没有prop ...

caplog夹具的例外 - Exception for caplog fixture

所以我有很多(pytest)测试,用 caplog 固定装置测试日志,可能没有以最好的方式完成(正如我现在意识到的那样)。 我使用了很多像caplog.records[0]和caplog.records[-1]这样的语句,但是现在我需要在一个在我的项目中被大量调用的函数中记录一些东西,这弄乱了我目前 ...


排序:
质量:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM