Skip to content

Commit

Permalink
Fix to unit test frame id save.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmccully committed Apr 23, 2024
1 parent ba26ce1 commit e25de49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions banzai/tests/test_frames.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ def test_frame_to_db_record():
'CONFMODE': 'full_frame'}, name='SCI')]
test_frame = LCOCalibrationFrame(hdu_list=hdu_list, file_path='/foo/bar')
test_frame.is_bad = False
test_frame.frame_id = 1234
test_frame.instrument = MagicMock(id=7)
mock_data_product = MagicMock(filename='test.fits.fz', filepath='/path/to/test/test.fits.fz')
mock_data_product = MagicMock(filename='test.fits.fz', filepath='/path/to/test/test.fits.fz', frame_id=1234)
db_record = test_frame.to_db_record(mock_data_product)

assert type(db_record) == CalibrationImage
Expand Down

0 comments on commit e25de49

Please sign in to comment.