Linux Tutorial
(venv) $ python -m testtools.run/home/stack/venv/bin/python: No module named testtools
How to install testtools module for python in RHEL 7/Fedora/Centos?
(venv) $ pip install testtools DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support Collecting testtools Using cached testtools-2.3.0-py2.py3-none-any.whl (184 kB) Collecting extras>=1.0.0 Using cached extras-1.0.0-py2.py3-none-any.whl (7.3 kB) Requirement already satisfied: six>=1.4.0 in /home/stack/venv/lib/python2.7/site-packages (from testtools) (1.14.0) Collecting pbr>=0.11 Using cached pbr-5.4.4-py2.py3-none-any.whl (110 kB) Collecting traceback2 Using cached traceback2-1.4.0-py2.py3-none-any.whl (16 kB) Collecting unittest2>=1.0.0 Using cached unittest2-1.1.0-py2.py3-none-any.whl (96 kB) Collecting python-mimeparse Using cached python_mimeparse-1.6.0-py2.py3-none-any.whl (6.1 kB) Collecting fixtures>=1.3.0 Using cached fixtures-3.0.0-py2.py3-none-any.whl (67 kB) Collecting linecache2 Using cached linecache2-1.0.0-py2.py3-none-any.whl (12 kB) Collecting argparse Using cached argparse-1.4.0-py2.py3-none-any.whl (23 kB) Installing collected packages: extras, pbr, linecache2, traceback2, argparse, unittest2, python-mimeparse, fixtures, testtools Successfully installed argparse-1.4.0 extras-1.0.0 fixtures-3.0.0 linecache2-1.0.0 pbr-5.4.4 python-mimeparse-1.6.0 testtools-2.3.0 traceback2-1.4.0 unittest2-1.1.0
Let's try running the test scripts again using testtools,
(venv) $ python -m testtools.runTests running... ...
Great!, now worked.
Linux Tutorial
Privacy Policy | Copyright2020 - All Rights Reserved. | Contact us | Report website issues in Github | Facebook page | Google+ page