How To Install python3-pytest-postgresql on Fedora 36

In this tutorial we learn how to install python3-pytest-postgresql in Fedora 36. python3-pytest-postgresql is A pytest plugin for PostgreSQL database integration

Introduction

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

What is python3-pytest-postgresql

This is a pytest plugin, that enables you to test your code that relies on a running PostgreSQL Database. It allows you to specify fixtures for PostgreSQL process and client.

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

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

sudo dnf -y install python3-pytest-postgresql

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

sudo yum -y install python3-pytest-postgresql

How To Uninstall python3-pytest-postgresql on Fedora 36

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

sudo dnf remove python3-pytest-postgresql

python3-pytest-postgresql Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/pytest_postgresql
/usr/lib/python3.10/site-packages/pytest_postgresql-3.1.2.dist-info
/usr/lib/python3.10/site-packages/pytest_postgresql-3.1.2.dist-info/AUTHORS.rst
/usr/lib/python3.10/site-packages/pytest_postgresql-3.1.2.dist-info/COPYING
/usr/lib/python3.10/site-packages/pytest_postgresql-3.1.2.dist-info/COPYING.lesser
/usr/lib/python3.10/site-packages/pytest_postgresql-3.1.2.dist-info/INSTALLER
/usr/lib/python3.10/site-packages/pytest_postgresql-3.1.2.dist-info/METADATA
/usr/lib/python3.10/site-packages/pytest_postgresql-3.1.2.dist-info/WHEEL
/usr/lib/python3.10/site-packages/pytest_postgresql-3.1.2.dist-info/entry_points.txt
/usr/lib/python3.10/site-packages/pytest_postgresql-3.1.2.dist-info/top_level.txt
/usr/lib/python3.10/site-packages/pytest_postgresql/__init__.py
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/compat.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/compat.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/config.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/config.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/executor.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/executor.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/executor_noop.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/executor_noop.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/janitor.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/janitor.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/plugin.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/plugin.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/retry.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/retry.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/sql.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/__pycache__/sql.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/compat.py
/usr/lib/python3.10/site-packages/pytest_postgresql/config.py
/usr/lib/python3.10/site-packages/pytest_postgresql/executor.py
/usr/lib/python3.10/site-packages/pytest_postgresql/executor_noop.py
/usr/lib/python3.10/site-packages/pytest_postgresql/factories
/usr/lib/python3.10/site-packages/pytest_postgresql/factories/__init__.py
/usr/lib/python3.10/site-packages/pytest_postgresql/factories/__pycache__
/usr/lib/python3.10/site-packages/pytest_postgresql/factories/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/factories/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/factories/__pycache__/client.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/factories/__pycache__/client.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/factories/__pycache__/noprocess.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/factories/__pycache__/noprocess.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/factories/__pycache__/process.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/factories/__pycache__/process.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_postgresql/factories/client.py
/usr/lib/python3.10/site-packages/pytest_postgresql/factories/noprocess.py
/usr/lib/python3.10/site-packages/pytest_postgresql/factories/process.py
/usr/lib/python3.10/site-packages/pytest_postgresql/janitor.py
/usr/lib/python3.10/site-packages/pytest_postgresql/plugin.py
/usr/lib/python3.10/site-packages/pytest_postgresql/py.typed
/usr/lib/python3.10/site-packages/pytest_postgresql/retry.py
/usr/lib/python3.10/site-packages/pytest_postgresql/sql.py
/usr/share/doc/python3-pytest-postgresql
/usr/share/doc/python3-pytest-postgresql/AUTHORS.rst
/usr/share/doc/python3-pytest-postgresql/CHANGES.rst
/usr/share/doc/python3-pytest-postgresql/README.rst
/usr/share/licenses/python3-pytest-postgresql
/usr/share/licenses/python3-pytest-postgresql/COPYING
/usr/share/licenses/python3-pytest-postgresql/COPYING.lesser

References

Summary

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