Thin-wrapper around the mock package for easier use with py.test
This plugin installs a mocker
fixture which is a thin-wrapper around the patching API provided by the mock
package, but with the benefit of not having to worry about undoing patches at the end of a test. The mocker fixture has the same API as mock.patch
, supporting the same arguments.
System | Target | Derivation | Build status |
---|---|---|---|
x86_64-linux | /gnu/store/dpgzb5bax0mxnz1cy8b9cjixlmbq6d06-python2-pytest-mock-1.10.1.drv | ||
mips64el-linux | /gnu/store/xd4z4q0mpswybl6g6aw3n2vq4zrn6dx7-python2-pytest-mock-1.10.1.drv | ||
i686-linux | /gnu/store/712dxr69pp782ciag7cdl55yd04scjpn-python2-pytest-mock-1.10.1.drv | ||
armhf-linux | /gnu/store/86s30kym1q1maay2ny4b4nd6z5z3g6k4-python2-pytest-mock-1.10.1.drv | ||
aarch64-linux | /gnu/store/7a4frcmh4ki40bqhxz692lqnf7i01g5k-python2-pytest-mock-1.10.1.drv |
Linter | Message | Location |
---|---|---|
inputs-should-be-native Identify inputs that should be native inputs | 'python2-mock' should probably be a native input | |
inputs-should-be-native Identify inputs that should be native inputs | 'python2-pytest' should probably be a native input |