How To Install python3-pytest-bdd on Fedora 36
Introduction
In this tutorial we learn how to install python3-pytest-bdd
on Fedora 36.
What is python3-pytest-bdd
pytest-bdd implements a subset of the Gherkin language to enable automating project requirements testing and to facilitate behavioral driven development. Unlike many other BDD tools, it does not require a separate runner and benefits from the power and flexibility of pytest. It enables unifying unit and functional tests, reduces the burden of continuous integration server configuration and allows the reuse of test setups. Pytest fixtures written for unit tests can be reused for setup and actions mentioned in feature steps with dependency injection. This allows a true BDD just-enough specification of the requirements without maintaining any context object containing the side effects of Gherkin imperative declarations.
We can use yum
or dnf
to install python3-pytest-bdd
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-pytest-bdd.
Install python3-pytest-bdd 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-bdd
using dnf
by running the following command:
sudo dnf -y install python3-pytest-bdd
Install python3-pytest-bdd 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-bdd
using yum
by running the following command:
sudo yum -y install python3-pytest-bdd
How To Uninstall python3-pytest-bdd on Fedora 36
To uninstall only the python3-pytest-bdd
package we can use the following command:
sudo dnf remove python3-pytest-bdd
python3-pytest-bdd Package Contents on Fedora 36
/usr/bin/pytest-bdd
/usr/lib/python3.10/site-packages/pytest_bdd
/usr/lib/python3.10/site-packages/pytest_bdd-5.0.0.dist-info
/usr/lib/python3.10/site-packages/pytest_bdd-5.0.0.dist-info/AUTHORS.rst
/usr/lib/python3.10/site-packages/pytest_bdd-5.0.0.dist-info/INSTALLER
/usr/lib/python3.10/site-packages/pytest_bdd-5.0.0.dist-info/LICENSE.txt
/usr/lib/python3.10/site-packages/pytest_bdd-5.0.0.dist-info/METADATA
/usr/lib/python3.10/site-packages/pytest_bdd-5.0.0.dist-info/WHEEL
/usr/lib/python3.10/site-packages/pytest_bdd-5.0.0.dist-info/entry_points.txt
/usr/lib/python3.10/site-packages/pytest_bdd-5.0.0.dist-info/top_level.txt
/usr/lib/python3.10/site-packages/pytest_bdd/__init__.py
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/cucumber_json.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/cucumber_json.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/exceptions.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/exceptions.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/feature.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/feature.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/generation.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/generation.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/gherkin_terminal_reporter.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/gherkin_terminal_reporter.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/hooks.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/hooks.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/parser.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/parser.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/parsers.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/parsers.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/plugin.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/plugin.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/reporting.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/reporting.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/scenario.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/scenario.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/scripts.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/scripts.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/steps.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/steps.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/types.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/types.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/pytest_bdd/cucumber_json.py
/usr/lib/python3.10/site-packages/pytest_bdd/exceptions.py
/usr/lib/python3.10/site-packages/pytest_bdd/feature.py
/usr/lib/python3.10/site-packages/pytest_bdd/generation.py
/usr/lib/python3.10/site-packages/pytest_bdd/gherkin_terminal_reporter.py
/usr/lib/python3.10/site-packages/pytest_bdd/hooks.py
/usr/lib/python3.10/site-packages/pytest_bdd/parser.py
/usr/lib/python3.10/site-packages/pytest_bdd/parsers.py
/usr/lib/python3.10/site-packages/pytest_bdd/plugin.py
/usr/lib/python3.10/site-packages/pytest_bdd/reporting.py
/usr/lib/python3.10/site-packages/pytest_bdd/scenario.py
/usr/lib/python3.10/site-packages/pytest_bdd/scripts.py
/usr/lib/python3.10/site-packages/pytest_bdd/steps.py
/usr/lib/python3.10/site-packages/pytest_bdd/templates
/usr/lib/python3.10/site-packages/pytest_bdd/templates/test.py.mak
/usr/lib/python3.10/site-packages/pytest_bdd/types.py
/usr/lib/python3.10/site-packages/pytest_bdd/utils.py
/usr/share/man/man1/pytest-bdd.1.gz
References
Summary
In this tutorial we learn how to install python3-pytest-bdd
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).