From e56dfb31e2005368a33bb00bf516052bc319e035 Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Wed, 24 Apr 2024 10:52:54 -0400 Subject: [PATCH] TST: Use user filename instead for markers table export test. --- .../default/plugins/markers/tests/test_markers_plugin.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jdaviz/configs/default/plugins/markers/tests/test_markers_plugin.py b/jdaviz/configs/default/plugins/markers/tests/test_markers_plugin.py index 0a4bfd9a59..11ee9ce878 100644 --- a/jdaviz/configs/default/plugins/markers/tests/test_markers_plugin.py +++ b/jdaviz/configs/default/plugins/markers/tests/test_markers_plugin.py @@ -1,3 +1,5 @@ +import os + import numpy as np from numpy.testing import assert_allclose @@ -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()