How to Install and Uninstall python-pytest-mock Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: June 29,2024

1. Install "python-pytest-mock" package

Please follow the steps below to install python-pytest-mock on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install python-pytest-mock

2. Uninstall "python-pytest-mock" package

Please follow the steps below to uninstall python-pytest-mock on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove python-pytest-mock $ sudo apt autoclean && sudo apt autoremove

3. Information about the python-pytest-mock package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: python-pytest-mock
Priority: optional
Section: universe/python
Installed-Size: 37
Maintainer: Ubuntu Developers
Original-Maintainer: Vincent Bernat
Architecture: all
Source: pytest-mock
Version: 0.8.1-1
Depends: python-pytest, python:any (<< 2.8), python:any (>= 2.7.5-5~)
Filename: pool/universe/p/pytest-mock/python-pytest-mock_0.8.1-1_all.deb
Size: 8904
MD5sum: e63894c905c90b244aead226b56ea360
SHA1: b35acb843e9799fb846d2d0d7850a90466b95fb9
SHA256: 93d73935e7fd1d6fdce8e6581b4b3c6e55e3dcae3eb414eff30b7b87ca15bba1
Description-en: thin-wrapper around mock for easier use with py.test (Python 2 module)
This plugin installs a "mocker" fixture which is a thin-wrapper
around the patching API provided by the excellent "mock" package, but
with the benefit of not having to worry about undoing patches at the
end of a test.
.
This package provides the Python 2 module.
Description-md5: b8231bbaa75c251f441f5835b1ad3e87
Homepage: https://github.com/pytest-dev/pytest-mock/
Python-Egg-Name: pytest-mock
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu