Name : python3-pytest-mock
| |
Version : 3.3.1
| Vendor : Mageia_Org
|
Release : 1.mga8
| Date : 2020-11-25 19:37:24
|
Group : Development/Python
| Source RPM : python-pytest-mock-3.3.1-1.mga8.src.rpm
|
Size : 0.08 MB
| |
Packager : guillomovitch < guillomovitch>
| |
Summary : Thin-wrapper around the mock package for easier use with py
|
Description :
pytest-mock 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:.. code-block:: python import os class UnixFS: AATTstaticmethod def rm(filename): os.remove(filename) def test_unix_fs(mocker): mocker.patch(\'os.remove\') UnixFS.rm(\'file\')...
|
RPM found in directory: /vol/rzm3/linux-mageia/distrib/8/x86_64/media/core/release |