A plugin to show lint errors for IW
Project description
flake8_iw
Supported lint checks
Use of @patch
from unittest.mock import patch
@patch("apps.openshifts.signals.task_update_shiftgroup_stats.delay")
class ShiftGroupUpdatedTests(TestCase):
def test_created(self, mock_task):
...
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
Release history Release notifications | RSS feed
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.2.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file flake8_iw-0.0.2.tar.gz
.
File metadata
- Download URL: flake8_iw-0.0.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ad267e234303fd37962f9e46ba1741f01e2655e3d443654dab5ff0d5178c1d4 |
|
MD5 | aef95f97090f981d61fb8f0e408951f7 |
|
BLAKE2b-256 | 2869fb2359dfb6b1abc4eb993b1e335d2d60e93bd85a8c41aa04d508a81df887 |
File details
Details for the file flake8_iw-0.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: flake8_iw-0.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eadbd38a12874f7956378819e5aaabd1e76ff8c68bf3032bbc77214022687b7 |
|
MD5 | df069edfdc068881e74fb933a07fdda3 |
|
BLAKE2b-256 | e19fba616f487ed153710196214a383a31a455980190e95f313ba782c3d60a40 |