arfc / annsa

Artificial neural networks for spectral analysis.
BSD 3-Clause "New" or "Revised" License
12 stars 4 forks source link

Failing test #21

Closed katyhuff closed 6 years ago

katyhuff commented 6 years ago

Even in python 2.7, the one test fails because of the following line:

https://github.com/arfc/annsa/blob/b3b7eca913b72ec584c2deb7c7e16db3b72095db/annsa/tests/test_annsa.py#L8

data_path = op.join(sb.__path__[0], 'data')

sb doesn't exist. What's the desired behavior here?

The current behavior is:


(py27) khuff@maria:~/repos/annsa(ci) $ py.test
============================================================================ test session starts =============================================================================
platform darwin -- Python 2.7.11, pytest-2.8.1, py-1.4.30, pluggy-0.3.1
rootdir: /Users/khuff/repos/annsa, inifile:
collected 0 items / 1 errors

=================================================================================== ERRORS ===================================================================================
_________________________________________________________________ ERROR collecting annsa/tests/test_annsa.py _________________________________________________________________
annsa/tests/test_annsa.py:8: in <module>
    data_path = op.join(sb.__path__[0], 'data')
E   NameError: name 'sb' is not defined
========================================================================== 1 error in 3.22 seconds ===========================================================================