How To Install python3-pytest-xvfb on Fedora 36
Introduction
In this tutorial we learn how to install python3-pytest-xvfb
on Fedora 36.
What is python3-pytest-xvfb
With Xvfb and the plugin installed, your testsuite automatically runs with Xvfb. This allows tests to be run without windows popping up during GUI tests or on systems without a display (like a CI). If Xvfb is not installed, the plugin does not run and your tests will still work as normal. However, a warning message will print to standard output letting you know that Xvfb is not installed. If you’re currently using xvfb-run in something like .travis.yml, simply remove it and install this plugin instead - then you’ll also have the benefits of Xvfb locally.
We can use yum
or dnf
to install python3-pytest-xvfb
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-pytest-xvfb.
Install python3-pytest-xvfb on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install python3-pytest-xvfb
using dnf
by running the following command:
sudo dnf -y install python3-pytest-xvfb
Install python3-pytest-xvfb on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python3-pytest-xvfb
using yum
by running the following command:
sudo yum -y install python3-pytest-xvfb
How To Uninstall python3-pytest-xvfb on Fedora 36
To uninstall only the python3-pytest-xvfb
package we can use the following command:
sudo dnf remove python3-pytest-xvfb
python3-pytest-xvfb Package Contents on Fedora 36
/usr/lib/python3.10/site-packages/__pycache__/pytest_xvfb.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/__pycache__/pytest_xvfb.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_xvfb-2.0.0-py3.10.egg-info
/usr/lib/python3.10/site-packages/pytest_xvfb-2.0.0-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/pytest_xvfb-2.0.0-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/pytest_xvfb-2.0.0-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/pytest_xvfb-2.0.0-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/pytest_xvfb-2.0.0-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/pytest_xvfb-2.0.0-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/pytest_xvfb.py
/usr/share/doc/python3-pytest-xvfb
/usr/share/doc/python3-pytest-xvfb/CHANGELOG.rst
/usr/share/doc/python3-pytest-xvfb/README.rst
References
Summary
In this tutorial we learn how to install python3-pytest-xvfb
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).