pylint-unittest
is a Pylint plugin for
detecting incorrect use of unittest assertions.
pip install pylint-unittest
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.
This rule will complain if you use assertEqual with True, False or None
as arguments instead of the respective assertTrue
, assertFalse
,
assertIsNone
.
This rule will complain if you use a deprecated unittest alias. See here for more information.
GPL-3.0