def test_without_collector_id_cannot_be_settings_based(self, limit_cls):
with pytest.raises(TypeError) as excinfo:
limit_cls(settings_based=True)
assert 'Can only be settings based when collector_id is provided.' == \
str(excinfo.value)
test_core_infrastructure.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录