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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pylint-unittest-0.2.0.tar.gz.

File metadata

  • Download URL: pylint-unittest-0.2.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for pylint-unittest-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3acbc0c028d49f5cb0b2133b4c170420bc5980a21f61a364161fbba1b950f6f2
MD5 d3a76c682f5d2f8847b596ea8556edb7
BLAKE2b-256 88bdcdf67ebd4c0cbbdbffa5952eca87d7989f34f32dadc00000f1e7a52f60c6

See more details on using hashes here.

File details

Details for the file pylint_unittest-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pylint_unittest-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbd2a746b451ad134eb8c17b7059736a31267d909e4b1164ed5ee73c8d7a22bf
MD5 cacb3b0ba96027db17b52674440fc755
BLAKE2b-256 9e7be2102a25cc7071a307628125d9ba8d3c76ab31b1504207faa5861de8e411

See more details on using hashes here.

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