panoptes / POCS

An Observatory Control System for the PANOPTES citizen-science project designed to help find transiting exoplanets! :telescope: :stars:
https://pocs.readthedocs.io/en/latest/
MIT License
77 stars 49 forks source link

Dome Simulator trying to import NoOpSerial, which doesn't exist #637

Closed wtgee closed 5 years ago

wtgee commented 5 years ago

See also #636

(panoptes) ➜  POCS git:(docs-update) ✗ pytest
===================================================================================================== test session starts ======================================================================================================
platform linux -- Python 3.6.6, pytest-3.7.4, py-1.6.0, pluggy-0.7.1
rootdir: /storage/panoptes/POCS, inifile: setup.cfg
plugins: remotedata-0.3.0, openfiles-0.3.0, doctestplus-0.1.3, arraydiff-0.1
collected 453 items / 7 errors                                                                                                                                                                                                 

============================================================================================================ ERRORS ============================================================================================================
_________________________________________________________________________________ ERROR collecting pocs/dome/protocol_astrohaven_simulator.py __________________________________________________________________________________
pocs/dome/protocol_astrohaven_simulator.py:182: in <module>
    class AstrohavenSerialSimulator(serial_handlers.NoOpSerial):
E   AttributeError: module 'pocs.tests.serial_handlers' has no attribute 'NoOpSerial'
______________________________________________________________________________ ERROR collecting pocs/serial_handlers/protocol_arduinosimulator.py ______________________________________________________________________________
pocs/serial_handlers/protocol_arduinosimulator.py:171: in <module>
    class FakeArduinoSerialHandler(serial_handlers.NoOpSerial):
E   AttributeError: module 'pocs.tests.serial_handlers' has no attribute 'NoOpSerial'
__________________________________________________________________________________________ ERROR collecting pocs/tests/test_rs232.py ___________________________________________________________________________________________
pocs/tests/test_rs232.py:9: in <module>
    from pocs.tests.serial_handlers import NoOpSerial
E   ImportError: cannot import name 'NoOpSerial'
__________________________________________________________________________________________ ERROR collecting pocs/tests/test_rs232.py ___________________________________________________________________________________________
ImportError while importing test module '/storage/panoptes/POCS/pocs/tests/test_rs232.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
pocs/tests/test_rs232.py:9: in <module>
    from pocs.tests.serial_handlers import NoOpSerial
E   ImportError: cannot import name 'NoOpSerial'
_______________________________________________________________________________ ERROR collecting pocs/tests/serial_handlers/protocol_buffers.py ________________________________________________________________________________
pocs/tests/serial_handlers/protocol_buffers.py:3: in <module>
    from pocs.tests.serial_handlers import NoOpSerial
E   ImportError: cannot import name 'NoOpSerial'
________________________________________________________________________________ ERROR collecting pocs/tests/serial_handlers/protocol_hooked.py ________________________________________________________________________________
pocs/tests/serial_handlers/protocol_hooked.py:6: in <module>
    from pocs.tests.serial_handlers import NoOpSerial
E   ImportError: cannot import name 'NoOpSerial'
________________________________________________________________________________ ERROR collecting pocs/tests/serial_handlers/protocol_no_op.py _________________________________________________________________________________
pocs/tests/serial_handlers/protocol_no_op.py:3: in <module>
    from pocs.tests.serial_handlers import NoOpSerial
E   ImportError: cannot import name 'NoOpSerial'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 7 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=================================================================================================== 7 error in 6.64 seconds ====================================================================================================
(panoptes) ➜  POCS git:(docs-update) ✗ 
wtgee commented 5 years ago

This was a mistake of mine on a branch so NoOpSerial does exist. Closing for now.