Socket
Socket
Sign inDemoInstall

pylint-unittest

Package Overview
Dependencies
1
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pylint-unittest

A Pylint plugin for detecting incorrect use of unittest assertions


Maintainers
1

Readme

pylint-unittest

.. image:: https://travis-ci.org/federicobond/pylint-unittest.svg?branch=master :alt: Build Status :target: https://travis-ci.org/federicobond/pylint-unittest

.. image:: https://img.shields.io/pypi/v/pylint-unittest.svg :alt: Latest Version :target: https://pypi.python.org/pypi/pylint-unittest

About

pylint-unittest is a Pylint <http://pylint.org>__ 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 <https://docs.python.org/2/library/unittest.html#deprecated-aliases>__ for more information.

License

GPL-3.0

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc