uscensusbureau / recon_replication

Other
2 stars 0 forks source link

tests in recon_replication/tests/*.py do not work out of the box #9

Closed simsong closed 1 year ago

simsong commented 1 year ago

The tests in recon_replication/tests do not work out of the box (see below). The reasons appear to be:

(base) simsong@Seasons recon_replication % cd tests                                                                                    (slg-dev)recon_replication
(base) simsong@Seasons tests % pytest                                                                                                  (slg-dev)recon_replication
====================================================================== test session starts =======================================================================
platform darwin -- Python 3.9.13, pytest-7.2.1, pluggy-1.0.0
rootdir: /Users/simsong/gits/recon_replication/tests
plugins: env-0.8.1, cov-4.0.0, flask-1.2.0, anyio-3.5.0
collected 0 items / 4 errors

============================================================================= ERRORS =============================================================================
____________________________________________________________ ERROR collecting cb_spec_decoder_test.py ____________________________________________________________
ImportError while importing test module '/Users/simsong/gits/recon_replication/tests/cb_spec_decoder_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../opt/anaconda3/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
cb_spec_decoder_test.py:4: in <module>
    from das_constants       import *
E   ModuleNotFoundError: No module named 'das_constants'
_______________________________________________________________ ERROR collecting constants_test.py _______________________________________________________________
ImportError while importing test module '/Users/simsong/gits/recon_replication/tests/constants_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../opt/anaconda3/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
constants_test.py:6: in <module>
    import constants
E   ModuleNotFoundError: No module named 'constants'
________________________________________________________________ ERROR collecting geotree_test.py ________________________________________________________________
ImportError while importing test module '/Users/simsong/gits/recon_replication/tests/geotree_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../opt/anaconda3/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
geotree_test.py:22: in <module>
    import pl94_geofile
E   ModuleNotFoundError: No module named 'pl94_geofile'
______________________________________________________________ ERROR collecting pl94_dbload_test.py ______________________________________________________________
ImportError while importing test module '/Users/simsong/gits/recon_replication/tests/pl94_dbload_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../../opt/anaconda3/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
pl94_dbload_test.py:9: in <module>
    from pl94_dbload import *
E   ModuleNotFoundError: No module named 'pl94_dbload'
==================================================================== short test summary info =====================================================================
ERROR cb_spec_decoder_test.py
ERROR constants_test.py
ERROR geotree_test.py
ERROR pl94_dbload_test.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================================= 4 errors in 0.29s ========================================================================
(base) simsong@Seasons tests %                                                                                                         (slg-dev)recon_replication
rrod515 commented 1 year ago

@simsong These do not appear to be relevant to the replication archive. Suggest we delete.

rrod515 commented 1 year ago

Addressed in #25