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.
Linter | Message | Location |
---|---|---|
inputs-should-be-native Identify inputs that should be native inputs | 'python-pytest' should probably be a native input |