Skip to content

Releases: mcous/decoy

v2.0.1

21 Mar 23:27
v2.0.1
f051a32

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

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

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

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

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

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

Choose a tag to compare

Bug Fixes

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

v1.10.2

10 May 22:37
29a3b08

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

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

Choose a tag to compare

Bug Fixes

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

Features