Skip to content

Releases: mcous/decoy

v1.10.2

10 May 22:37
29a3b08
Compare
Choose a tag to compare

Bug Fixes

  • spy: handle properties that return primitive types (#132) (6eebc5a)
  • warnings: point to correct docs link in RedundantVerifyWarning (488eeec)

v1.10.1

25 Mar 02:59
a98a32c
Compare
Choose a tag to compare

Bug Fixes

  • warnings: do not trigger MiscalledStubWarnings from prop events (#126) (396eae2), closes #125
  • when: fix type overloads of then_enter_with on mypy v0.941 (#124) (5db349b)

v1.10.0

12 Mar 03:14
ea43b4a
Compare
Choose a tag to compare

Bug Fixes

  • spy: ensure class signature uses __call__ (#120) (6a73b14)

Features

v1.9.0

14 Dec 20:59
05c2e50
Compare
Choose a tag to compare

Features

  • when: add ContextManager mocking support (#93) (22bf2fb)

v1.8.0

02 Dec 18:48
34b71e9
Compare
Choose a tag to compare

Bug Fixes

  • matchers: use isinstance() for matchers.IsA rather than type() (#88) (be6c780)
  • fix name argument type anotation in Decoy.mock (1a59098)
  • matchers: ensure ErrorMatching return type matches spec (#86) (c60af56)

Features

  • allow spec-less mocks to be named (#85) (dbc4813), closes #79
  • match args leniently according to spec signature (#89) (fbbe941), closes #78

v1.7.0

21 Sep 01:44
8e02b84
Compare
Choose a tag to compare

Bug Fixes

  • verify: improve verify traceback and error messages (#66) (9e74b36)

Features

  • allow extra arguments to be ignored (#61) (d1ba0d3), closes #60

v1.6.7

10 Aug 18:33
c3414c3
Compare
Choose a tag to compare

Bug Fixes

  • verify: ensure verify with times respects rehearsal args (#57) (af39c43)

v1.6.6

05 Aug 03:38
780785c
Compare
Choose a tag to compare

Bug Fixes

  • call_stack: match spy IDs in get_by_rehearsals (#55) (8845b5b), closes #54

v1.6.5

31 Jul 02:41
f01545d
Compare
Choose a tag to compare

Bug Fixes

  • spy: match inspect.signature for staticmethods (#51) (f5dc60d)

v1.6.4

21 Jul 16:21
b4ece6b
Compare
Choose a tag to compare

Bug Fixes

  • spy: gracefully degrade when a class's type hints can't be resolved at runtime (#47) (81072ed), closes #46