File: Skip-more-tests-that-need-remote-data.patch

package info (click to toggle)
sunpy 7.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,252 kB
  • sloc: python: 40,837; ansic: 1,710; makefile: 36
file content (55 lines) | stat: -rw-r--r-- 2,181 bytes parent folder | download
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 3624f27..1080213 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -27,7 +27,7 @@ addopts =
     -m "not mpl_image_compare"
     --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 f7f3901..e08e00e 100644
--- a/sunpy/coordinates/tests/test_frames.py
+++ b/sunpy/coordinates/tests/test_frames.py
@@ -508,6 +508,7 @@ def test_magnetic_model_obstime(obstime, dipole_lonlat):
         assert_quantity_allclose(frame.dipole_lonlat, dipole_lonlat.T)
 
 
+@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 bc8e6ef..4d12608 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):