Skip to content

A Pylint plugin to detect incorrect use of unittest assertions

License

Notifications You must be signed in to change notification settings

federicobond/pylint-unittest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pylint-unittest

Build Status Latest Version

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

About

A Pylint plugin to detect incorrect use of unittest assertions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages