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)