Releases: jdkandersson/flake8-mock-spec
Releases · jdkandersson/flake8-mock-spec
Release v1.4.0
Added
- Lint checks that enforce the use of any one or more of the
spec
,
spec_set
,autospec
, ornew_callable
arguments when calling
unittest.mock.patch.multiple
.
Release v1.3.0
Added
- Lint checks that enforce the use of any one or more of the
new
,spec
,
spec_set
,autospec
, ornew_callable
arguments when calling
unittest.mock.patch.object
.
Release v1.2.0
Added
- Lint checks that ensure
patch
is called with any one or more of thenew
,
spec
,spec_set
,autospec
ornew_callable
arguments
Fix
- Ensure that error codes are correctly mapped for
NonCallableMock
and
AsyncMock
which were mapped to theMagicMock
code before
Changed
- Changed codes for mock checks:
Mock
:TMS001
->TMS010
,MagicMock
:TMS002
->TMS011
,NonCallableMock
:TMS003
->TMS012
andAsyncMock
:TMS004
->TMS013
.
Release v1.1.0
Added
- Lint checks that ensure
NonCallableMock
andAsyncMock
constructors have
thespec
orspec_set
argument
Release v1.0.0
Added
- Lint checks that ensure
Mock
andMagicMock
constructors have thespec
orspec_set
argument