Bot releases are hidden (Show)
Maintenance release to note official support for Python 3.12
Published by mcous over 1 year ago
cls
or func
argument to decoy.mock()
,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)