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

Last updated: May 21,2024

1. Install "python-requests-mock" package

In this section, we are going to explain the necessary steps to install python-requests-mock on Ubuntu 16.04 LTS (Xenial Xerus)

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

2. Uninstall "python-requests-mock" package

This is a short guide on how to uninstall python-requests-mock on Ubuntu 16.04 LTS (Xenial Xerus):

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

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

Package: python-requests-mock
Priority: optional
Section: universe/python
Installed-Size: 103
Maintainer: Ubuntu Developers
Original-Maintainer: PKG OpenStack
Architecture: all
Version: 0.7.0-2
Depends: python-requests, python-six, python:any (<< 2.8), python:any (>= 2.7.5-5~)
Filename: pool/universe/p/python-requests-mock/python-requests-mock_0.7.0-2_all.deb
Size: 16082
MD5sum: 5799a83cdfc905438dfaa1f5e6b899b0
SHA1: 84194301089bef1b0237ec58a90360755acf3b9a
SHA256: bd128a8ce8209d0a4989d25c150024bdb085c377909a5f17138a138d9a31d779
Description-en: mock out responses from the requests package - Python 2.x
requests-mock provides a building block to stub out the HTTP requests_
portions of your testing code. Everything in requests_ eventually goes through
an adapter to do the transport work. requests-mock creates a custom adatper
that allows you to predefine responses when certain URIs are called. There are
then a number of methods provided to get the adapter used.
.
This package contains the Python 2.x module.
Description-md5: 4b3586d0dd928fe9bacf51a6580555f4
Homepage: https://github.com/jamielennox/requests-mock
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu