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

Last updated: May 10,2024

1. Install "python3-pytest-mock" package

Please follow the step by step instructions below to install python3-pytest-mock on Ubuntu 16.04 LTS (Xenial Xerus)

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

2. Uninstall "python3-pytest-mock" package

This guide covers the steps necessary to uninstall python3-pytest-mock on Ubuntu 16.04 LTS (Xenial Xerus):

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

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

Package: python3-pytest-mock
Priority: optional
Section: universe/python
Installed-Size: 33
Maintainer: Ubuntu Developers
Original-Maintainer: Vincent Bernat
Architecture: all
Source: pytest-mock
Version: 0.8.1-1
Depends: python3-pytest, python3:any (>= 3.3.2-2~)
Filename: pool/universe/p/pytest-mock/python3-pytest-mock_0.8.1-1_all.deb
Size: 6514
MD5sum: a3bc6813438a2cb8550990364c28ae0f
SHA1: 8e38d4a0b328826d4c3d5d1977185567cec6c860
SHA256: b68f7822b46fd271cff7d518d9b2c537b78862c1fd4fd5a56ca457fdb0625e39
Description-en: thin-wrapper around mock for easier use with py.test (Python 3 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 3 module.
Description-md5: 38c2fbb78ade5094d588f51ccebd7723
Homepage: https://github.com/pytest-dev/pytest-mock/
Python-Egg-Name: pytest-mock
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu