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