Skip to content

Releases: mcous/decoy

v2.2.0

09 Jun 15:09
d295b41
Compare
Choose a tag to compare

2.2.0 (2025-06-09)

Features

  • matchers: add AnythingOrNone to match any value including None (#262) (99af642)
  • matchers: add ListMatching to match sub-lists (#261) (a54b781)

Bug Fixes

  • warnings: remove faulty MissingSpecAttributeWarning (#263) (080e690), closes #257

v2.1.2

09 Jun 14:44
v2.1.2
53ad39d
Compare
Choose a tag to compare

Bug Fixes

  • warnings: avoid MissingSpecAttributeWarning if property type is missing or optional (#258) (89cfeb0), partially addresses #257

v2.1.1

12 Nov 20:12
v2.1.1
ed3b22b
Compare
Choose a tag to compare

Maintenance release to note official support for Python 3.12

v2.1.0

13 Aug 21:57
v2.1.0
68b2348
Compare
Choose a tag to compare

Features

  • spy: warn if mock used with a missing attribute (#218) (72cefe4), closes #204

v2.0.2

08 Jun 15:43
v2.0.2
e4122c2
Compare
Choose a tag to compare

Bug Fixes

  • spy: ensure __eq__ of rehearsal arg is preferred (#201) (63413d8)

v2.0.1

21 Mar 23:27
v2.0.1
f051a32
Compare
Choose a tag to compare

Bug Fixes

  • warnings: trigger reset warnings at a better stack level (#165) (56863f5)

v2.0.0

20 Feb 17:07
v2.0.0
5ecb887
Compare
Choose a tag to compare

Refactors

  • require mock name, remove deprecated methods, drop Python 3.6 (#151) (1f4e9b3)

BREAKING CHANGES

  • if you do not specify a cls or func argument to decoy.mock(),
    you must specify a name parameter.

You can use the following find-and-replace patterns
to fix most tests that start failing due to this change:

# find
([a-z_]+?)(: .+?)? = decoy.mock\(\)
# replace
$1$2 = decoy.mock(name="$1")
# find
([a-z_]+?)(: .+?)? = decoy.mock\(is_async=(.+?)\)
# replace
$1$2 = decoy.mock(name="$1", is_async=$3)

v1.11.3

23 Dec 19:04
v1.11.3
09502e5
Compare
Choose a tag to compare

Bug Fixes

  • spy: prefix internal properties with _decoy (#150) (6a6868a), closes #144

v1.11.2

22 Dec 18:05
25dcdf1
Compare
Choose a tag to compare

Bug Fixes

  • spy: use classmethod __func__ source for async detection (#148) (0dfc38c), closes #146

v1.11.1

25 Sep 20:06
ce5c8e8
Compare
Choose a tag to compare

Bug Fixes

  • spy: resolve source to origin of GenericAlias (#143) (7d021c2), closes #142