How to Install and Uninstall python3-pytest-mock Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: May 10,2024

1. Install "python3-pytest-mock" package

Here is a brief guide to show you how to install python3-pytest-mock on Ubuntu 20.04 LTS (Focal Fossa)

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

2. Uninstall "python3-pytest-mock" package

Please follow the steps below to uninstall python3-pytest-mock on Ubuntu 20.04 LTS (Focal Fossa):

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

3. Information about the python3-pytest-mock package on Ubuntu 20.04 LTS (Focal Fossa)

Package: python3-pytest-mock
Architecture: all
Version: 1.10.4-3
Priority: optional
Section: universe/python
Source: pytest-mock
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Python Modules Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 51
Depends: python3-pytest, python3:any, python3-pytest (>= 3.0.3) | python3-pytest (<< 3)
Filename: pool/universe/p/pytest-mock/python3-pytest-mock_1.10.4-3_all.deb
Size: 14636
MD5sum: b667cf4c4e00f6feffb577380a57b760
SHA1: e17ee62b24c6af8d4780fa30a702c2604715f87f
SHA256: 53b4cd9efa02a5f23bc8b59d20a46198e1eb282344137a9a173397ad1e80d238
Homepage: https://github.com/pytest-dev/pytest-mock/
Description: thin-wrapper around mock for easier use with py.test (Python 3 module)
Description-md5: 38c2fbb78ade5094d588f51ccebd7723
Python-Egg-Name: pytest-mock