Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
haticekaratay committed Apr 4, 2024
1 parent 6317fdd commit eebf2e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jdaviz/configs/default/plugins/export/tests/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def test_export_data(cubeviz_helper, spectrum1d_cube):
assert os.path.isfile("cubeviz_export.fits")
assert ep.data_invalid_msg == ''


def test_disable_export_for_unsupported_units(specviz2d_helper):
from astropy.units import def_unit, Unit
dn = def_unit("DN", represents=Unit("count"))
Expand All @@ -222,7 +223,7 @@ def test_disable_export_for_unsupported_units(specviz2d_helper):
assert "Spectrum 1D smooth stddev-3.0" in ep.dataset.choices
ep.dataset_selected = "Spectrum 1D smooth stddev-3.0"
assert ep.dataset.selected_obj.unit == "DN/s"
assert ep.data_invalid_msg == "Export Disabled: The unit DN / s could not be saved in native FITS format."
assert ep.data_invalid_msg == "Export Disabled: The unit DN / s could not be saved in native FITS format." # noqa


class TestExportPluginPlots():
Expand Down

0 comments on commit eebf2e4

Please # to comment.