How to Install and Uninstall python2-pytest-mock Package on openSUSE Leap

Last updated: July 01,2024

1. Install "python2-pytest-mock" package

This is a short guide on how to install python2-pytest-mock on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install python2-pytest-mock

2. Uninstall "python2-pytest-mock" package

Please follow the guidance below to uninstall python2-pytest-mock on openSUSE Leap:

$ sudo zypper remove python2-pytest-mock

3. Information about the python2-pytest-mock package on openSUSE Leap

Information for package python2-pytest-mock:
--------------------------------------------
Repository : Main Repository
Name : python2-pytest-mock
Version : 2.0.0-bp153.1.25
Arch : noarch
Vendor : openSUSE
Installed Size : 69,3 KiB
Installed : No
Status : not installed
Source package : python-pytest-mock-2.0.0-bp153.1.25.src
Summary : Thin-wrapper around the mock package for easier use with pytest
Description :
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

5. The same packages on other Linux Distributions