Skip to content

Commit

Permalink
Merge pull request #147 from sot/issue-146
Browse files Browse the repository at this point in the history
make sure the columns in test_update_obs are consistent
  • Loading branch information
javierggt authored Feb 3, 2023
2 parents 5f31b53 + 152e096 commit 4468c6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agasc/tests/test_obs_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,9 @@ def mock_write(*args, **kwargs):
(56314, 115347520, 1, 'removed because I felt like it', '2010:110:14:57:43.442')],
dtype=[('obsid', '<i4'), ('agasc_id', '<i4'), ('status', '<i4'),
('comments', '<U80'), ('mp_starcat_time', '<U21')]))
print(ref)
print(args[0])
assert np.all(args[0] == ref)
ref.pprint(max_lines=30)
args[0][ref.dtype.names].pprint(max_lines=30)
assert np.all(args[0][ref.dtype.names] == ref)
mock_write.n_calls = 0
mock_write.calls = []

Expand Down

0 comments on commit 4468c6a

Please sign in to comment.