How to Install and Uninstall python-pytest-mock Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: July 01,2024

1. Install "python-pytest-mock" package

This guide covers the steps necessary to install python-pytest-mock on Ubuntu 18.04 LTS (Bionic Beaver)

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

2. Uninstall "python-pytest-mock" package

Please follow the instructions below to uninstall python-pytest-mock on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the python-pytest-mock package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: python-pytest-mock
Architecture: all
Version: 1.7.1-1
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: 48
Depends: python-pytest, python:any (<< 2.8), python:any (>= 2.7.5-5~), python-mock (>= 2), python-pytest (>= 3.0.3) | python-pytest (<< 3)
Filename: pool/universe/p/pytest-mock/python-pytest-mock_1.7.1-1_all.deb
Size: 13732
MD5sum: efe00960a2d9020f506d71c8e054d7da
SHA1: 4aa8fb66c53f4f186d6f5b362e6f4f82988aaadd
SHA256: 4a96b4fd1633580909bb37aaa7e8d7a6336f7711be994c3336d32de2abd6d831
Homepage: https://github.com/pytest-dev/pytest-mock/
Description: thin-wrapper around mock for easier use with py.test (Python 2 module)
Description-md5: b8231bbaa75c251f441f5835b1ad3e87
Python-Egg-Name: pytest-mock