Skip to content

Unittest TextTestResult fails #288

@rachel3834

Description

@rachel3834

I am working through the installation documentation for the pipeline (under Ubuntu 18.04.3, miniconda3 venv as described by the docs). I got to the step of running the setup.py test and I thought you'd like to know that the test for TextTestResult currently fails for v1.2.0.

The output given is:

ERROR: test_get_reference_lamp_exist (goodman_pipeline.core.tests.test_core.ReferenceDataTest)

Traceback (most recent call last):
File "/data/ROMEREA/2019/SOAR/pipeline/goodman_pipeline-1.2.0/goodman_pipeline/core/tests/test_core.py", line 640, in test_get_reference_lamp_exist
ref_lamp = self.rd.get_reference_lamp(header=self.ccd.header)
File "/data/ROMEREA/2019/SOAR/pipeline/goodman_pipeline-1.2.0/goodman_pipeline/core/core.py", line 2857, in get_reference_lamp
self._ccd = CCDData.read(full_path, unit=u.adu)
File "/data/miniconda3/envs/goodman_pipeline/lib/python3.6/site-packages/astropy/nddata/mixins/ndio.py", line 54, in call
return registry.read(self._cls, *args, **kwargs)
File "/data/miniconda3/envs/goodman_pipeline/lib/python3.6/site-packages/astropy/io/registry.py", line 508, in read
fileobj = ctx.enter()
File "/data/miniconda3/envs/goodman_pipeline/lib/python3.6/contextlib.py", line 81, in enter
return next(self.gen)
File "/data/miniconda3/envs/goodman_pipeline/lib/python3.6/site-packages/astropy/utils/data.py", line 193, in get_readable_fileobj
fileobj = io.FileIO(name_or_obj, 'r')
FileNotFoundError: [Errno 2] No such file or directory: '/data/ROMEREA/2019/SOAR/pipeline/goodman_pipeline-1.2.0/goodman_pipeline/data/ref_comp/ goodman_comp_400M2_GG455_HgArNe.fits'

======================================================================
FAIL: test__call__ (goodman_pipeline.core.tests.test_core.SpectroscopicModeTest)

Traceback (most recent call last):
File "/data/ROMEREA/2019/SOAR/pipeline/goodman_pipeline-1.2.0/goodman_pipeline/core/tests/test_core.py", line 738, in test__call__
self.assertEqual(mode_m2_header, 'm2')
AssertionError: ' m2' != 'm2'

  • m2
    ? -
  • m2

======================================================================
FAIL: test_get_cam_grt_targ_angle (goodman_pipeline.core.tests.test_core.SpectroscopicModeTest)

Traceback (most recent call last):
File "/data/ROMEREA/2019/SOAR/pipeline/goodman_pipeline-1.2.0/goodman_pipeline/core/tests/test_core.py", line 774, in test_get_cam_grt_targ_angle
self.assertEqual(cam_targ, '39.4')
AssertionError: ' 39.4' != '39.4'

  • 39.4
    ? -
  • 39.4

======================================================================
FAIL: test_get_mode (goodman_pipeline.core.tests.test_core.SpectroscopicModeTest)

Traceback (most recent call last):
File "/data/ROMEREA/2019/SOAR/pipeline/goodman_pipeline-1.2.0/goodman_pipeline/core/tests/test_core.py", line 752, in test_get_mode
self.assertEqual(mode_m2, 'm2')
AssertionError: ' m2' != 'm2'

  • m2
    ? -
  • m2

Ran 118 tests in 76.857s

FAILED (failures=3, errors=1)
Test failed: <unittest.runner.TextTestResult run=118 errors=1 failures=3>
error: Test failed: <unittest.runner.TextTestResult run=118 errors=1 failures=3>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions