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.1.2.tar.gz
(3.9 kB
view hashes)