【发布时间】:2021-08-19 11:44:18
【问题描述】:
我有一个测试,我想禁用收缩阶段。
我能做到
from hypothesis import given, settings, strategies as st
from hypothesis._settings import Phase
@settings(report_multiple_bugs=False, phases=list(Phase)[:-1])
@given(my_composite_generator())
def test_legacy_rack_conversion(input):
assert_stuff_about(input)
但我不喜欢从第三方库导入以下划线开头的私有内容。
是否有更推荐的方法来禁用测试收缩?
【问题讨论】: