We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59b8cb6 commit 8908613Copy full SHA for 8908613
src/astro_image_display_api/widget_api_test.py
@@ -70,9 +70,12 @@ def test_width_height(self):
70
assert self.image.image_width == width
71
assert self.image.image_height == height
72
73
- def test_load_fits(self, data):
+ def test_load_fits(self, data, tmp_path):
74
hdu = fits.PrimaryHDU(data=data)
75
- self.image.load_fits(hdu)
+ image_path = tmp_path / 'test.fits'
76
+ hdu.header["BUNIT"] = "adu"
77
+ hdu.writeto(image_path)
78
+ self.image.load_fits(image_path)
79
80
def test_load_nddata(self, data):
81
nddata = NDData(data)
0 commit comments