Skip to content

Releases: mcous/decoy

v1.6.0

12 Jul 01:03

Choose a tag to compare

Features

  • when: add then_do API for triggering a callback (#39) (01fb271), closes #31
  • add mock method to replace create_decoy, create_decoy_func (#37) (d3e0ae9)
  • spy: add inspect.signature and repr support (#35) (0b12237), closes #29 #30
  • warnings: add RedundantVerifyWarning (#36) (633159f), closes #34

v1.5.0

11 Jul 03:19

Choose a tag to compare

Features

  • pytest_plugin: add pytest plugin for decoy fixture injection (#26) (3193808), closes #25
  • verify: allow specification of exact call count (#27) (f17dd05), closes #23

v1.4.0

11 Jul 03:19
d7ebd35

Choose a tag to compare

Bug Fixes

  • typing: ensure create_decoy typing accepts ABC as spec (#20) (47e328c)

Features

  • matchers: add argument captor matcher (#19) (f8c49eb), closes #17
  • matchers: add HasAttributes and DictMatching matchers (#21) (0e75094), closes #18

v1.3.2

11 Jul 03:19
8b5aeaf

Choose a tag to compare

Features

  • when: warn if stub is called with arguments that do not match rehearsals (#16) (f0190e7), closes #14

v1.3.1

11 Jul 03:19
1dab3f9

Choose a tag to compare

Reverts

  • remove missing stub warning; it's a little broken (338961e)

v1.3.0

11 Jul 03:19

Choose a tag to compare

Features

  • when: warn if stub is called with args that do not match (#15) (5fd4e6d), closes #14

v1.2.0

11 Jul 03:19

Choose a tag to compare

Bug Fixes

  • spy: allow spy creation when type hints cannot be resolved (#10) (6bd7f40), closes #8

Features

  • verify: allow multiple rehearsals in verify (#11) (0c4206e), closes #9

v1.1.0

11 Jul 03:19

Choose a tag to compare

Features

v1.0.2

11 Jul 03:19

Choose a tag to compare

Bug Fixes

  • replace unittest.mock usage with custom spy (#3) (d1b742d)

v1.0.1

11 Jul 03:19

Choose a tag to compare

Bug Fixes

  • allow nested mocks and typing (#2) (0371a77)