A Pylint plugin for detecting incorrect use of unittest assertions
Project description
About
pylint-unittest is a Pylint plugin for detecting incorrect use of unittest assertions.
Installation
pip install pylint-unittest
Usage
Ensure pylint-unittest is installed and then execute:
pylint --load-plugins pylint_unittest [..other options..] <path_to_your_sources>
Alternatively, add load_plugins=pylint_unittest to your pylintrc file, under the MASTER section.
Rules
wrong-assertion
This rule will complain if you use assertEqual with True, False or None as arguments instead of the respective assertTrue, assertFalse, assertIsNone.
deprecated-unittest-alias
This rule will complain if you use a deprecated unittest alias. See here for more information.
License
GPL-3.0
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pylint-unittest-0.2.0.tar.gz
.
File metadata
- Download URL: pylint-unittest-0.2.0.tar.gz
- Upload date:
- Size: 16.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3acbc0c028d49f5cb0b2133b4c170420bc5980a21f61a364161fbba1b950f6f2 |
|
MD5 | d3a76c682f5d2f8847b596ea8556edb7 |
|
BLAKE2b-256 | 88bdcdf67ebd4c0cbbdbffa5952eca87d7989f34f32dadc00000f1e7a52f60c6 |
File details
Details for the file pylint_unittest-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: pylint_unittest-0.2.0-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbd2a746b451ad134eb8c17b7059736a31267d909e4b1164ed5ee73c8d7a22bf |
|
MD5 | cacb3b0ba96027db17b52674440fc755 |
|
BLAKE2b-256 | 9e7be2102a25cc7071a307628125d9ba8d3c76ab31b1504207faa5861de8e411 |