MPBA / pyphysio

GNU General Public License v3.0
47 stars 13 forks source link

error when running tests: ModuleNotFoundError: No module named 'context' #31

Closed andbiz closed 7 years ago

andbiz commented 7 years ago
$> make test
pytest
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.6.0, pytest-3.0.5, py-1.4.32, pluggy-0.4.0
rootdir: /home/andrea/Trento/CODICE/workspaces/pyHRV/pyHRV, inifile: 
collected 0 items / 10 errors 

================================================================================== ERRORS ==================================================================================
__________________________________________________________________ ERROR collecting tests/test_filters.py __________________________________________________________________
ImportError while importing test module '/home/andrea/Trento/CODICE/workspaces/pyHRV/pyHRV/tests/test_filters.py'.
Hint: make sure your test modules/packages have valid Python names.                                                                                                         
Traceback:                                                                                                                                                                  
tests/test_filters.py:5: in <module>                                                                                                                                        
    from context import ph, Assets, np                                                                                                                                      
E   ModuleNotFoundError: No module named 'context'                                                                                                                          
__________________________________________________________________ ERROR collecting tests/test_general.py __________________________________________________________________
ImportError while importing test module '/home/andrea/Trento/CODICE/workspaces/pyHRV/pyHRV/tests/test_general.py'.
Hint: make sure your test modules/packages have valid Python names.                                                                                                         
Traceback:                                                                                                                                                                  
tests/test_general.py:4: in <module>                                                                                                                                        
    from context import ph, Assets                                                                                                                                          
E   ModuleNotFoundError: No module named 'context'                                                                                                                          
______________________________________________________________ ERROR collecting tests/test_ibi_extraction.py _______________________________________________________________
ImportError while importing test module '/home/andrea/Trento/CODICE/workspaces/pyHRV/pyHRV/tests/test_ibi_extraction.py'.
Hint: make sure your test modules/packages have valid Python names.                                                                                                         
Traceback:                                                                                                                                                                  
tests/test_ibi_extraction.py:3: in <module>                                                                                                                                 
    from context import *                                                                                                                                                   
E   ModuleNotFoundError: No module named 'context'                                                                                                                          
______________________________________________________________ ERROR collecting tests/test_indicators_eda.py _______________________________________________________________
ImportError while importing test module '/home/andrea/Trento/CODICE/workspaces/pyHRV/pyHRV/tests/test_indicators_eda.py'.
Hint: make sure your test modules/packages have valid Python names.                                                                                                         
Traceback:                                                                                                                                                                  
tests/test_indicators_eda.py:4: in <module>                                                                                                                                 
    from context import ph, Assets, np, approx                                                                                                                              
E   ModuleNotFoundError: No module named 'context'                                                                                                                          
______________________________________________________________ ERROR collecting tests/test_indicators_hrv.py _______________________________________________________________
ImportError while importing test module '/home/andrea/Trento/CODICE/workspaces/pyHRV/pyHRV/tests/test_indicators_hrv.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_indicators_hrv.py:3: in <module>
    from context import ph, np, Assets, approx
E   ModuleNotFoundError: No module named 'context'
__________________________________________________________________ ERROR collecting tests/test_issues.py ___________________________________________________________________
ImportError while importing test module '/home/andrea/Trento/CODICE/workspaces/pyHRV/pyHRV/tests/test_issues.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_issues.py:4: in <module>
    from context import ph
E   ModuleNotFoundError: No module named 'context'
_____________________________________________________________ ERROR collecting tests/test_phasic_estimation.py _____________________________________________________________
ImportError while importing test module '/home/andrea/Trento/CODICE/workspaces/pyHRV/pyHRV/tests/test_phasic_estimation.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_phasic_estimation.py:3: in <module>
    from context import ph, np, Assets, approx
E   ModuleNotFoundError: No module named 'context'
______________________________________________________________ ERROR collecting tests/test_some_indicators.py ______________________________________________________________
ImportError while importing test module '/home/andrea/Trento/CODICE/workspaces/pyHRV/pyHRV/tests/test_some_indicators.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_some_indicators.py:4: in <module>
    from context import ph
E   ModuleNotFoundError: No module named 'context'
__________________________________________________________________ ERROR collecting tests/test_syntax.py ___________________________________________________________________
ImportError while importing test module '/home/andrea/Trento/CODICE/workspaces/pyHRV/pyHRV/tests/test_syntax.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_syntax.py:3: in <module>
    from context import ph
E   ModuleNotFoundError: No module named 'context'
___________________________________________________________________ ERROR collecting tests/test_tools.py ___________________________________________________________________
ImportError while importing test module '/home/andrea/Trento/CODICE/workspaces/pyHRV/pyHRV/tests/test_tools.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_tools.py:4: in <module>
    from context import ph, np, Assets, approx
E   ModuleNotFoundError: No module named 'context'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================================================= 10 error in 0.30 seconds =========================================================================
make: *** [Makefile:5: test] Error 2