diff --git a/jdaviz/configs/cubeviz/plugins/spectral_extraction/tests/test_spectral_extraction.py b/jdaviz/configs/cubeviz/plugins/spectral_extraction/tests/test_spectral_extraction.py index 32895927e6..4d6d9a96b3 100644 --- a/jdaviz/configs/cubeviz/plugins/spectral_extraction/tests/test_spectral_extraction.py +++ b/jdaviz/configs/cubeviz/plugins/spectral_extraction/tests/test_spectral_extraction.py @@ -1,8 +1,6 @@ import pytest import warnings -pytest.importorskip("astropy", minversion="5.3.2") - import numpy as np from astropy import units as u from astropy.io import fits @@ -572,6 +570,7 @@ def test_default_spectral_extraction(cubeviz_helper, spectrum1d_cube_fluxunit_jy ) +@pytest.mark.usefixtures('_jail') @pytest.mark.remote_data @pytest.mark.parametrize( "start_slice, aperture, expected_rtol, uri, calspec_url", diff --git a/jdaviz/core/launcher.py b/jdaviz/core/launcher.py index 0b6e69f0e4..23ab7a1ec9 100644 --- a/jdaviz/core/launcher.py +++ b/jdaviz/core/launcher.py @@ -46,7 +46,11 @@ def open(filename, show=True, **kwargs): The autoidentified ConfigHelper for the given data ''' # first catch URIs and download them, or return filename unchanged: - filename = download_uri_to_path(filename, cache=True) + if "local_path" in kwargs: + fn_dl_kw = {"local_path": kwargs["local_path"]} + else: + fn_dl_kw = {} + filename = download_uri_to_path(filename, cache=True, **fn_dl_kw) # Identify the correct config compatible_helpers, hdul = identify_helper(filename)