使用snapshottest时如何查看完整差异?

时间:2019-09-23 14:57:31

标签: python-3.x python-unittest

我正在Python 3.7项目中使用const targetObject = { labels: { [this.props.templatename]: { x1: 'y1', x2: 'y2', x3: 'y3' } } }; 运行单元测试,我们在其中使用unittest库来跟踪端点中的更改。快照测试失败时,如何查看全部差异?现在,差异被截断了,我看不到发生了什么变化。

在我的测试类中设置maxDiff = None不起作用,因为断言错误是在库中而不是我的测试类中引发的。

0 个答案:

没有答案
相关问题