facebook / facebook/TestSlide

Improve mock_constructor() old pointer error message

未关闭
#110 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Better Error Messages enhancement mock_constructor
主要语言
Python
星标
149
派生
62
PR 合并指标
30 天内没有已合并 PR

描述

The current error message:

```
BaseException: Attribute getting after the class has been used with mock_constructor() is not supported! After using mock_constructor() you must get a pointer to the new mocked class...
```

Is hard to understand. Let's:

- Make this message clearer.
- Add links to the docs. This requires having a place where the version is defined so the doc link can be constructed correctly `https://testslide.readthedocs.io/en/$VERSION/mock_constructor/index.html`.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。