Recent Releases of decoy
decoy - v2.0.0
Refactors
- require mock name, remove deprecated methods, drop Python 3.6 (#151) (1f4e9b3)
BREAKING CHANGES
- if you do not specify a
clsorfuncargument todecoy.mock(), you must specify anameparameter.
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(isasync=(.+?))
replace
$1$2 = decoy.mock(name="$1", is_async=$3) ```
- Python
Published by mcous about 3 years ago
decoy - v1.8.0
Bug Fixes
- matchers: use isinstance() for matchers.IsA rather than type() (#88) (be6c780)
- fix name argument type anotation in Decoy.mock (1a59098)
- matchers: ensure ErrorMatching return type matches spec (#86) (c60af56)
Features
- allow spec-less mocks to be named (#85) (dbc4813), closes #79
- match args leniently according to spec signature (#89) (fbbe941), closes #78
- Python
Published by mcous about 4 years ago
decoy - v1.6.0
Features
- when: add
then_doAPI for triggering a callback (#39) (01fb271), closes #31 - add
mockmethod to replacecreate_decoy,create_decoy_func(#37) (d3e0ae9) - spy: add
inspect.signatureandreprsupport (#35) (0b12237), closes #29 #30 - warnings: add RedundantVerifyWarning (#36) (633159f), closes #34
- Python
Published by mcous over 4 years ago