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_callablearguments 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_callablearguments when calling
unittest.mock.patch.object.
Release v1.2.0
Added
- Lint checks that ensure
patchis called with any one or more of thenew,
spec,spec_set,autospecornew_callablearguments
Fix
- Ensure that error codes are correctly mapped for
NonCallableMockand
AsyncMockwhich were mapped to theMagicMockcode before
Changed
- Changed codes for mock checks:
Mock:TMS001->TMS010,MagicMock:TMS002->TMS011,NonCallableMock:TMS003->TMS012andAsyncMock:TMS004->TMS013.
Release v1.1.0
Added
- Lint checks that ensure
NonCallableMockandAsyncMockconstructors have
thespecorspec_setargument
Release v1.0.0
Added
- Lint checks that ensure
MockandMagicMockconstructors have thespec
orspec_setargument