Releases: mcous/decoy
Releases · mcous/decoy
v2.1.1
v2.1.0
v2.0.2
v2.0.1
v2.0.0
Refactors
BREAKING CHANGES
- if you do not specify a
cls
orfunc
argument todecoy.mock()
,
you must specify aname
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)