Skip to content

Commit

Permalink
Merge pull request spacetelescope#2829 from pllim/jail-export-again
Browse files Browse the repository at this point in the history
TST: jail export test for markers table
  • Loading branch information
pllim authored Apr 24, 2024
2 parents f667af7 + e56dfb3 commit a3b29d3
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

import numpy as np
from numpy.testing import assert_allclose

Expand Down Expand Up @@ -130,9 +132,12 @@ def test_markers_cubeviz(tmp_path, cubeviz_helper, spectrum1d_cube):

# appears as option in export plugin and exports successfully
assert "Markers: table" in exp.plugin_table.choices
exp.filename = str(tmp_path / "cubeviz_export.ecsv")
filename = str(tmp_path / "cubeviz_export.ecsv")
exp.filename.auto = False
exp.filename.value = filename
exp.plugin_table = "Markers: table"
exp.export()
assert os.path.isfile(filename)

# clearing table clears markers
mp.clear_table()
Expand Down

0 comments on commit a3b29d3

Please # to comment.