From e25de4914e91a829fe1c70a7873c9751a4bc4eee Mon Sep 17 00:00:00 2001 From: Curtis McCully Date: Tue, 23 Apr 2024 10:18:28 -0400 Subject: [PATCH] Fix to unit test frame id save. --- banzai/tests/test_frames.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/banzai/tests/test_frames.py b/banzai/tests/test_frames.py index d3ceedb6..0317958b 100644 --- a/banzai/tests/test_frames.py +++ b/banzai/tests/test_frames.py @@ -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