Skip to content

Releases: mcous/decoy

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

v1.11.0

05 Jun 14:14
a4cf27e
Compare
Choose a tag to compare

Bug Fixes

Features

  • when: allow then_do to take an async function (4ae00e5), closes #136

v1.10.3

25 May 19:52
c23d145
Compare
Choose a tag to compare

Bug Fixes

  • spy: follow __wrapped__ when getting specs and signatures (#134) (8d86195), closes #133