Skip to content

Commit 2d0bf04

Browse files
committed
MArk remote tests
1 parent f0f2b98 commit 2d0bf04

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

astropy_helpers

Submodule astropy_helpers updated 94 files

docs/sbpy/data/dastcom5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Using DASTCOM5
66
For using the DASTCOM5 Module, you have to first download the databse locally.
77
That can be done by:
88

9-
>>> from sbpy.utils import dastcom5
9+
>>> from sbpy.data.utils import dastcom5
1010
>>> dastcom5.download_dastcom5() # doctest: +SKIP
1111

1212
After the database is downloaded, all the queries can be done easily.

requirements.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

sbpy/data/utils/tests/test_dastcom5.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def test_read_record(mock_open, mock_np_fromfile, mock_read_headers):
5959
)
6060

6161

62+
@pytest.mark.remote_data
6263
@mock.patch("sbpy.data.utils.dastcom5.os.makedirs")
6364
@mock.patch("sbpy.data.utils.dastcom5.zipfile")
6465
@mock.patch("sbpy.data.utils.dastcom5.os.path.isdir")
@@ -76,6 +77,7 @@ def test_download_dastcom5_raises_error_when_folder_exists(
7677
)
7778

7879

80+
@pytest.mark.remote_data
7981
@mock.patch("sbpy.data.utils.dastcom5.urllib.request")
8082
@mock.patch("sbpy.data.utils.dastcom5.os.makedirs")
8183
@mock.patch("sbpy.data.utils.dastcom5.zipfile")
@@ -89,6 +91,7 @@ def test_download_dastcom5_creates_folder(
8991
mock_makedirs.assert_called_once_with(dastcom5.SBPY_LOCAL_PATH)
9092

9193

94+
@pytest.mark.remote_data
9295
@mock.patch("sbpy.data.utils.dastcom5.zipfile")
9396
@mock.patch("sbpy.data.utils.dastcom5.os.path.isdir")
9497
@mock.patch("sbpy.data.utils.dastcom5.urllib.request.urlretrieve")

0 commit comments

Comments
 (0)