facebook / facebook/TestSlide

Improve mock_constructor() old pointer error message

Open
#110 0 comments 0 reactions 0 assignees View on GitHub
Better Error Messages enhancement mock_constructor
Dominant language
Python
Stars
149
Forks
62
PR merge metrics
No merged PRs in 30d

Description

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`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.