File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/astro_image_display_api Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1212from astropy import units as u # noqa: E402
1313from astropy .wcs import WCS # noqa: E402
1414
15+ __all__ = ['ImageWidgetAPITest' ]
16+
1517
1618class ImageWidgetAPITest :
1719 cursor_error_classes = (ValueError )
@@ -403,12 +405,14 @@ def test_scroll_pan(self):
403405 def test_save (self , tmp_path ):
404406 filename = tmp_path / 'woot.png'
405407 self .image .save (filename )
408+ assert filename .is_file ()
406409
407410 def test_save_overwrite (self , tmp_path ):
408411 filename = tmp_path / 'woot.png'
409412
410413 # First write should be fine
411414 self .image .save (filename )
415+ assert filename .is_file ()
412416
413417 # Second write should raise an error because file exists
414418 with pytest .raises (FileExistsError ):
You can’t perform that action at this time.
0 commit comments