ho finito il programma… su spyder funziona, ma quando provo a lanciare i test da terminale mi da questo errore:
============================= test session starts =============================
platform win32 -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0 -- C:\Users\Emanuele\AppData\Local\Continuum\anaconda3\python.exe
cachedir: .pytest_cache
rootdir: C:\Users\Emanuele\Downloads\Università\1 ANNO (primo semestre)\HW2bis, inifile:
plugins: timeout-1.2.1, remotedata-0.2.1, openfiles-0.3.0, doctestplus-0.1.3, arraydiff-0.2
timeout: 1.0s method: thread
collected 0 items / 1 errors
=================================== ERRORS ====================================
_________________________ ERROR collecting test_01.py _________________________
import file mismatch:
imported module 'test_01' has this __file__ attribute:
C:\Users\Emanuele\Downloads\Università\HW2bis\test_01.py
which is not the same as the test file we want to collect:
C:\Users\Emanuele\Downloads\Università\1 ANNO (primo semestre)\HW2bis\test_01.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.45 seconds ===========================
qualche idea?
============================= test session starts =============================
platform win32 -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0 -- C:\Users\Emanuele\AppData\Local\Continuum\anaconda3\python.exe
cachedir: .pytest_cache
rootdir: C:\Users\Emanuele\Downloads\Università\1 ANNO (primo semestre)\HW2bis, inifile:
plugins: timeout-1.2.1, remotedata-0.2.1, openfiles-0.3.0, doctestplus-0.1.3, arraydiff-0.2
timeout: 1.0s method: thread
collected 0 items / 1 errors
=================================== ERRORS ====================================
_________________________ ERROR collecting test_01.py _________________________
import file mismatch:
imported module 'test_01' has this __file__ attribute:
C:\Users\Emanuele\Downloads\Università\HW2bis\test_01.py
which is not the same as the test file we want to collect:
C:\Users\Emanuele\Downloads\Università\1 ANNO (primo semestre)\HW2bis\test_01.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!
=========================== 1 error in 0.45 seconds ===========================
qualche idea?