https://github.com/openprocurement/noseplugins
https://github.com/openprocurement/noseplugins
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/openprocurement/noseplugins
- Owner: openprocurement
- Created: 2017-06-07T10:14:40.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-17T15:47:20.000Z (almost 9 years ago)
- Last Synced: 2025-01-04T06:17:45.985Z (over 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# noseplugins
### TodoWarningPlugin is used for passing 'broken' tests.
When test, decorated with this plugin, fails, 'W' or 'Warning' will be in output.
If this test passes, a dot '.' will be in output.
Example of using:
```python
from nose_todo_plugin import warning
...
@warning("reason of fail")
def test_empty_listing(self):
...
```
Also, in setup.cfg add option 'with-todo=1'.
In the final test results, all warnings will be outputed in format:
```
Reason of fail: Exception from test falling (name of test case).
```