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
pylint-unittest-0.2.0.tar.gz
(16.4 kB
view hashes)
Built Distribution
Close
Hashes for pylint_unittest-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbd2a746b451ad134eb8c17b7059736a31267d909e4b1164ed5ee73c8d7a22bf |
|
MD5 | cacb3b0ba96027db17b52674440fc755 |
|
BLAKE2b-256 | 9e7be2102a25cc7071a307628125d9ba8d3c76ab31b1504207faa5861de8e411 |