1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
From: Ole Streicher <olebole@debian.org>
Date: Wed, 22 Nov 2023 21:14:04 +0100
Subject: Skip more tests that need remote data
---
pytest.ini | 2 +-
sunpy/coordinates/tests/test_frames.py | 1 +
sunpy/coordinates/tests/test_transformations.py | 2 ++
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/pytest.ini b/pytest.ini
index f1eb90c..1772ba5 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -27,7 +27,7 @@ addopts =
--dist no
--arraydiff
--doctest-ignore-import-errors
-asdf_schema_tests_enabled = true
+asdf_schema_tests_enabled = false
asdf_schema_root = sunpy/io/special/asdf/resources/
mpl-results-path = figure_test_images
mpl-use-full-test-name = true
diff --git a/sunpy/coordinates/tests/test_frames.py b/sunpy/coordinates/tests/test_frames.py
index e7d79a7..e8105b5 100644
--- a/sunpy/coordinates/tests/test_frames.py
+++ b/sunpy/coordinates/tests/test_frames.py
@@ -492,6 +492,7 @@ def test_heliocentric_radial_psi(x, y, psi):
# ==============================================================================
+@pytest.mark.remote_data
def test_magnetic_model_default():
# Also tests that no downloading happens because this test is not marked as remote
obstime = '2012-07-01'
diff --git a/sunpy/coordinates/tests/test_transformations.py b/sunpy/coordinates/tests/test_transformations.py
index adfe2f0..baa2902 100644
--- a/sunpy/coordinates/tests/test_transformations.py
+++ b/sunpy/coordinates/tests/test_transformations.py
@@ -895,6 +895,7 @@ _franz_harper_example_data = [
]
+@pytest.mark.remote_data
@pytest.mark.parametrize(("start_class", "start_vector"), _franz_harper_example_data)
@pytest.mark.parametrize(("end_class", "end_vector"), _franz_harper_example_data)
def test_magnetic_franz_harper(start_class, start_vector, end_class, end_vector):
@@ -925,6 +926,7 @@ _sunspice_data = [
]
+@pytest.mark.remote_data
@pytest.mark.parametrize(("start_class", "start_vector"), _sunspice_data)
@pytest.mark.parametrize(("end_class", "end_vector"), _sunspice_data)
def test_magnetic_sunspice(start_class, start_vector, end_class, end_vector):
|