Skip to content

v2.0.0

Compare
Choose a tag to compare
@mcous mcous released this 20 Feb 17:07
· 61 commits to main since this release
v2.0.0
5ecb887

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)