Skip to main content

A Pylint plugin for detecting incorrect use of unittest assertions

Project description

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

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)

Uploaded Source

Built Distribution

pylint_unittest-0.2.0-py3-none-any.whl (17.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page