How To Install python3-testscenarios on Rocky Linux 8

In this tutorial we learn how to install python3-testscenarios on Rocky Linux 8. python3-testscenarios is Testscenarios, a pyunit extension for dependency injection

Introduction

In this tutorial we learn how to install python3-testscenarios on Rocky Linux 8.

What is python3-testscenarios

testscenarios provides clean dependency injection for python unittest style tests. This can be used for interface testing (testing many implementations via a single test suite) or for classic dependency injection (provide tests with dependencies externally to the test code itself, allowing easy testing in different situations).

We can use yum or dnf to install python3-testscenarios on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-testscenarios.

Install python3-testscenarios on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-testscenarios using dnf by running the following command:

sudo dnf -y install python3-testscenarios

Install python3-testscenarios on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-testscenarios using yum by running the following command:

sudo yum -y install python3-testscenarios

How To Uninstall python3-testscenarios on Rocky Linux 8

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

sudo dnf remove python3-testscenarios

python3-testscenarios Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/testscenarios
/usr/lib/python3.6/site-packages/testscenarios-0.5.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/testscenarios-0.5.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/testscenarios-0.5.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/testscenarios-0.5.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/testscenarios-0.5.0-py3.6.egg-info/not-zip-safe
/usr/lib/python3.6/site-packages/testscenarios-0.5.0-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/testscenarios-0.5.0-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/testscenarios/__init__.py
/usr/lib/python3.6/site-packages/testscenarios/__pycache__
/usr/lib/python3.6/site-packages/testscenarios/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/testscenarios/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/testscenarios/__pycache__/scenarios.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/testscenarios/__pycache__/scenarios.cpython-36.pyc
/usr/lib/python3.6/site-packages/testscenarios/__pycache__/testcase.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/testscenarios/__pycache__/testcase.cpython-36.pyc
/usr/lib/python3.6/site-packages/testscenarios/scenarios.py
/usr/lib/python3.6/site-packages/testscenarios/testcase.py
/usr/lib/python3.6/site-packages/testscenarios/tests
/usr/lib/python3.6/site-packages/testscenarios/tests/__init__.py
/usr/lib/python3.6/site-packages/testscenarios/tests/__pycache__
/usr/lib/python3.6/site-packages/testscenarios/tests/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/testscenarios/tests/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/testscenarios/tests/__pycache__/test_scenarios.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/testscenarios/tests/__pycache__/test_scenarios.cpython-36.pyc
/usr/lib/python3.6/site-packages/testscenarios/tests/__pycache__/test_testcase.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/testscenarios/tests/__pycache__/test_testcase.cpython-36.pyc
/usr/lib/python3.6/site-packages/testscenarios/tests/test_scenarios.py
/usr/lib/python3.6/site-packages/testscenarios/tests/test_testcase.py
/usr/share/doc/python3-testscenarios
/usr/share/doc/python3-testscenarios/GOALS
/usr/share/doc/python3-testscenarios/HACKING
/usr/share/doc/python3-testscenarios/NEWS
/usr/share/doc/python3-testscenarios/README
/usr/share/doc/python3-testscenarios/doc
/usr/share/doc/python3-testscenarios/doc/__init__.py
/usr/share/doc/python3-testscenarios/doc/__pycache__
/usr/share/doc/python3-testscenarios/doc/__pycache__/__init__.cpython-36.pyc
/usr/share/doc/python3-testscenarios/doc/__pycache__/test_sample.cpython-36.pyc
/usr/share/doc/python3-testscenarios/doc/example.py
/usr/share/doc/python3-testscenarios/doc/test_sample.py
/usr/share/licenses/python3-testscenarios
/usr/share/licenses/python3-testscenarios/Apache-2.0
/usr/share/licenses/python3-testscenarios/BSD

References

Summary

In this tutorial we learn how to install python3-testscenarios on Rocky Linux 8 using yum and dnf.