How To Install python-vcrpy on CentOS 7
Introduction
In this tutorial we learn how to install python-vcrpy
on CentOS 7.
What is python-vcrpy
Simplify and speed up testing HTTP by recording all HTTP interactions and saving them to “cassette” files, which are yaml files containing the contents of your requests and responses. Then when you run your tests again, they all just hit the text files instead of the internet. This speeds up your tests and lets you work offline. If the server you are testing against ever changes its API, all you need to do is delete your existing cassette files, and run your tests again. All of the mocked responses will be updated with the new API.
We can use yum
or dnf
to install python-vcrpy
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-vcrpy.
Install python-vcrpy on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install python-vcrpy
using yum
by running the following command:
Install python-vcrpy on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install python-vcrpy
using dnf
by running the following command:
How To Uninstall python-vcrpy on CentOS 7
To uninstall only the python-vcrpy
package we can use the following command:
References
Summary
In this tutorial we learn how to install python-vcrpy
on CentOS 7 using yum
and dnf
.