Skip to content

Releases: jdkandersson/flake8-mock-spec

Release v1.4.0

14 Jan 11:45
1bfb375
Compare
Choose a tag to compare

Added

  • Lint checks that enforce the use of any one or more of the spec,
    spec_set, autospec, or new_callable arguments when calling
    unittest.mock.patch.multiple.

Release v1.3.0

14 Jan 11:47
cdd9c10
Compare
Choose a tag to compare

Added

  • Lint checks that enforce the use of any one or more of the new, spec,
    spec_set, autospec, or new_callable arguments when calling
    unittest.mock.patch.object.

Release v1.2.0

14 Jan 05:30
4f592f7
Compare
Choose a tag to compare

Added

  • Lint checks that ensure patch is called with any one or more of the new,
    spec, spec_set, autospec or new_callable arguments

Fix

  • Ensure that error codes are correctly mapped for NonCallableMock and
    AsyncMock which were mapped to the MagicMock code before

Changed

  • Changed codes for mock checks:
    • Mock: TMS001 -> TMS010,
    • MagicMock: TMS002 -> TMS011,
    • NonCallableMock: TMS003 -> TMS012 and
    • AsyncMock: TMS004 -> TMS013.

Release v1.1.0

14 Jan 04:30
3034820
Compare
Choose a tag to compare

Added

  • Lint checks that ensure NonCallableMock and AsyncMock constructors have
    the spec or spec_set argument

Release v1.0.0

14 Jan 03:57
eb5d1c9
Compare
Choose a tag to compare

Added

  • Lint checks that ensure Mock and MagicMock constructors have the spec
    or spec_set argument