- Name: python3-pytest-mock
- Version: 1.10.1
- Release: 1.mga7
- Epoch:
- Group: Development/Python
- License: MIT
- Url: https://github.com/pytest-dev/pytest-mock/
- Summary: Thin-wrapper around the mock package for easier use with py
- Architecture: noarch
- Size: 56899
- Distribution: Mageia
- Vendor: Mageia.Org
- Packager: shlomif <shlomif>
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: @staticmethod def rm(filename):
os.remove(filename) def test_unix_fs(mocker): mocker.patch('os.remove')
UnixFS.rm('file')...
- OptFlags: -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables
- Cookie: localhost 1552687509
- Buildhost: localhost
Sources packages:
Other version of this rpm: