sot / kadi

Chandra commands and events
https://sot.github.io/kadi
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Linux 32 test failures #120

Closed jeanconn closed 6 years ago

jeanconn commented 6 years ago
=================================== FAILURES ===================================
________________________________ test_get_cmds _________________________________

    def test_get_cmds():
        cs = commands.get_cmds('2012:029', '2012:030')
        assert isinstance(cs, commands.CommandTable)
        assert len(cs) == 147
        assert np.all(cs['timeline_id'][:10] == 426098447)
        assert np.all(cs['timeline_id'][-10:] == 426098448)
        assert cs['date'][0] == '2012:029:13:00:00.000'
        assert cs['date'][-1] == '2012:030:11:00:01.285'
        assert cs['tlmsid'][-1] == 'CTXBON'

        cs = commands.get_cmds('2012:029', '2012:030', type='simtrans')
        assert len(cs) == 2
        assert np.all(cs['date'] == ['2012:030:02:00:00.000', '2012:030:08:27:02.000'])
        assert np.all(cs['pos'] == [75624, 73176])  # from params

        cmd = cs[1]

        assert repr(cmd).startswith('<Cmd 2012:030:08:27:02.000 SIMTRANS')
>       assert repr(cmd).endswith('scs=133 step=161 timeline_id=426098449 pos=73176>')
E       AssertionError: assert False
E        +  where False = <built-in method endswith of str object at 0xb4f90570>('scs=133 step=161 timeline_id=426098449 pos=73176>')
E        +    where <built-in method endswith of str object at 0xb4f90570> = '<Cmd 2012:030:08:27:02.000 SIMTRANS tlmsid=None scs=133 step=161 timeline_id=426098449 vcdu=15639968 pos=73176>'.endswith
E        +      where '<Cmd 2012:030:08:27:02.000 SIMTRANS tlmsid=None scs=133 step=161 timeline_id=426098449 vcdu=15639968 pos=73176>' = repr(<Cmd 2012:030:08:27:02.000 SIMTRANS tlmsid=None scs=133 step=161 timeline_id=426098449 vcdu=15639968 pos=73176>)

kadi/commands/tests/test_commands.py:49: AssertionError
_______________________ test_get_cmds_zero_length_result _______________________

    def test_get_cmds_zero_length_result():
        cmds = commands.get_cmds(date='2017:001')
        assert len(cmds) == 0
>       assert cmds.colnames == ['idx', 'date', 'type', 'tlmsid', 'scs',
                                 'step', 'timeline_id', 'params']
E       AssertionError: assert ['idx', 'date..., 'step', ...] == ['idx', 'date'..., 'step', ...]
E         At index 7 diff: 'vcdu' != 'params'
E         Left contains more items, first extra item: 'params'
E         Full diff:
E         + ['idx', 'date', 'type', 'tlmsid', 'scs', 'step', 'timeline_id', 'params']
E         - ['idx',
E         -  'date',
E         -  'type',...
E         
E         ...Full output truncated (7 lines hidden), use '-vv' to show

kadi/commands/tests/test_commands.py:60: AssertionError
========= 2 failed, 40 passed, 1 skipped, 1 xfailed in 146.04 seconds ==========
jeanconn commented 6 years ago

Though that VCDU thing looks more like it has the wrong version. Yep, wrong kadi version (as I branched off master in the skare3 32 branch before merging the kadi update).