How to Install and Uninstall python2-pytest-localserver Package on openSUSE Leap

Last updated: May 06,2024

1. Install "python2-pytest-localserver" package

Learn how to install python2-pytest-localserver on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install python2-pytest-localserver

2. Uninstall "python2-pytest-localserver" package

Please follow the steps below to uninstall python2-pytest-localserver on openSUSE Leap:

$ sudo zypper remove python2-pytest-localserver

3. Information about the python2-pytest-localserver package on openSUSE Leap

Information for package python2-pytest-localserver:
---------------------------------------------------
Repository : Main Repository
Name : python2-pytest-localserver
Version : 0.5.0-bp153.1.22
Arch : noarch
Vendor : openSUSE
Installed Size : 55,9 KiB
Installed : No
Status : not installed
Source package : python-pytest-localserver-0.5.0-bp153.1.22.src
Summary : Plugin for py.test to test server connections locally
Description :
The pytest-localserver package is a plugin for the `pytest`_ testing framework
which enables you to test server connections locally.
Sometimes `monkeypatching`_ ``urllib2.urlopen()`` just does not cut it, for
instance if you work with ``urllib2.Request``, define your own openers/handlers
or work with ``httplib``. In these cases it may come in handy to have an HTTP
server running locally which behaves just like the real thing. Well, look
no further!