How To Install python3-pytest-regressions on Fedora 36

In this tutorial we learn how to install python3-pytest-regressions in Fedora 36. python3-pytest-regressions is Pytest fixtures for writing regression tests

Introduction

In this tutorial we learn how to install python3-pytest-regressions on Fedora 36.

What is python3-pytest-regressions

This pytest plugin makes it simple to test general data, images, files, and numeric tables by saving expected data in a data directory (courtesy of pytest-datadir) that can be used to verify that future runs produce the same data.

We can use yum or dnf to install python3-pytest-regressions on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-pytest-regressions.

Install python3-pytest-regressions 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-regressions using dnf by running the following command:

sudo dnf -y install python3-pytest-regressions

Install python3-pytest-regressions 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-regressions using yum by running the following command:

sudo yum -y install python3-pytest-regressions

How To Uninstall python3-pytest-regressions on Fedora 36

To uninstall only the python3-pytest-regressions package we can use the following command:

sudo dnf remove python3-pytest-regressions

python3-pytest-regressions Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/pytest_regressions
/usr/lib/python3.10/site-packages/pytest_regressions-2.3.1.dist-info
/usr/lib/python3.10/site-packages/pytest_regressions-2.3.1.dist-info/INSTALLER
/usr/lib/python3.10/site-packages/pytest_regressions-2.3.1.dist-info/LICENSE
/usr/lib/python3.10/site-packages/pytest_regressions-2.3.1.dist-info/METADATA
/usr/lib/python3.10/site-packages/pytest_regressions-2.3.1.dist-info/WHEEL
/usr/lib/python3.10/site-packages/pytest_regressions-2.3.1.dist-info/entry_points.txt
/usr/lib/python3.10/site-packages/pytest_regressions-2.3.1.dist-info/top_level.txt
/usr/lib/python3.10/site-packages/pytest_regressions/__init__.py
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/common.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/common.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/data_regression.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/data_regression.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/dataframe_regression.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/dataframe_regression.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/file_regression.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/file_regression.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/image_regression.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/image_regression.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/ndarrays_regression.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/ndarrays_regression.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/num_regression.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/num_regression.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/plugin.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/plugin.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/testing.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/__pycache__/testing.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_regressions/common.py
/usr/lib/python3.10/site-packages/pytest_regressions/data_regression.py
/usr/lib/python3.10/site-packages/pytest_regressions/dataframe_regression.py
/usr/lib/python3.10/site-packages/pytest_regressions/file_regression.py
/usr/lib/python3.10/site-packages/pytest_regressions/image_regression.py
/usr/lib/python3.10/site-packages/pytest_regressions/ndarrays_regression.py
/usr/lib/python3.10/site-packages/pytest_regressions/num_regression.py
/usr/lib/python3.10/site-packages/pytest_regressions/plugin.py
/usr/lib/python3.10/site-packages/pytest_regressions/testing.py
/usr/share/doc/python3-pytest-regressions
/usr/share/doc/python3-pytest-regressions/CHANGELOG.html
/usr/share/doc/python3-pytest-regressions/README.html
/usr/share/licenses/python3-pytest-regressions
/usr/share/licenses/python3-pytest-regressions/LICENSE

References

Summary

In this tutorial we learn how to install python3-pytest-regressions on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).