diff --git a/CHANGES.rst b/CHANGES.rst index 16ebe881f4..ff428e6b74 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -13,6 +13,18 @@ Infrastructure, Utility and Other Changes and Additions ------------------------------------------------------- +0.4.9 (TBD) +=========== + +Service fixes and enhancements +------------------------------ + +heasarc +^^^^^^^ + +- Fix Heasarc.download_data for Sciserver. [#3183] + + 0.4.8 (2025-01-16) ================== diff --git a/astroquery/heasarc/tests/test_heasarc.py b/astroquery/heasarc/tests/test_heasarc.py index 3510101a60..1c63da8c8d 100644 --- a/astroquery/heasarc/tests/test_heasarc.py +++ b/astroquery/heasarc/tests/test_heasarc.py @@ -1,7 +1,6 @@ # Licensed under a 3-clause BSD style license - see LICENSE.rst import os -import shutil import pytest import tempfile from unittest.mock import patch, PropertyMock @@ -304,6 +303,7 @@ def test_download_data__missingcolumn(host): ): Heasarc.download_data(Table({"id": [1]}), host=host) + def test_download_data__sciserver(): with tempfile.TemporaryDirectory() as tmpdir: datadir = f'{tmpdir}/data' @@ -321,6 +321,7 @@ def test_download_data__sciserver(): assert os.path.exists(f'{downloaddir}/data') assert os.path.exists(f'{downloaddir}/data/file.txt') + def test_download_data__outside_sciserver(): with pytest.raises( FileNotFoundError,