Ragazzi,
nel lanciare il comando di test01 dal prompt ANACONDa: pytest test_01.py -v --timeout 1 --durations 0, riscontro l'errore sotto descritto
Premetto che come ho fatto le installazioni e aggiornamenti del sw con i comandi descritti sul prompt ANACONDA:
conda update --all aggiornamento librerie
conda install -c conda-forge ddt
conda install pytest-timeout
=================================== ERRORS ====================================
_________________________ ERROR collecting test_01.py _________________________
ImportError while importing test module 'C:\Users\xxxxxxx\.spyder-py3\homework01\test_01.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
test_01.py:6: in <module>
from ddt import file_data, ddt, data, unpack
E ModuleNotFoundError: No module named 'ddt'
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.13 seconds ===========================