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 | |
inputs-should-not-be-input Identify inputs that shouldn't be inputs at all | 'python-setuptools' should probably not be an input at all |