Skip to main content

A plugin to show lint errors for IW

Project description

flake8_iw

Supported lint checks

Use of @patch

from unittest.mock import patch_alias

class ShiftGroupUpdatedTests(TestCase):
    def test_created(self, mock_task):
        self.mock_call = patch_alias("apps.openshifts.signals.task_update_shiftgroup_stats.delay")
        ...
from unittest.mock import patch

@patch("apps.openshifts.signals.task_update_shiftgroup_stats.delay")
def my_function(my_argument):
    ...

Lint check to prevent the use of @patch and patch directly. Recommendation: Use PatchingTestCase / PatchingTransactionTestCase instead

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

flake8_iw-0.0.5.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

flake8_iw-0.0.5-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file flake8_iw-0.0.5.tar.gz.

File metadata

  • Download URL: flake8_iw-0.0.5.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for flake8_iw-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a801de4834f5335fd6b5fcefa0edd9eeda8bb79baf87d588b59d70d8f60bd99c
MD5 6d8920fd2d00200e4484ec8ea2c95562
BLAKE2b-256 608746fecd49f8e73a835fb0b433d722859299655caef7953685a540c86a9859

See more details on using hashes here.

File details

Details for the file flake8_iw-0.0.5-py2.py3-none-any.whl.

File metadata

  • Download URL: flake8_iw-0.0.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for flake8_iw-0.0.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f474e8a898a978c0a31a560987f245b3152001413921bb88de4cf5fd3356cf7c
MD5 b5e214ff0f90f49cb50f32d20d887bcc
BLAKE2b-256 eac4484273f9676e526b430abbbab88030a43da3b2be847a17c353ad475b3f40

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