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
|
From: Ole Streicher <olebole@debian.org>
Date: Thu, 24 Feb 2022 20:43:49 +0100
Subject: Mark test that uses remote data
This one tries to load some IERS data in case they are taken as "outdated"
---
specutils/tests/test_spectral_axis.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/specutils/tests/test_spectral_axis.py b/specutils/tests/test_spectral_axis.py
index c9df8d1..8c9243b 100644
--- a/specutils/tests/test_spectral_axis.py
+++ b/specutils/tests/test_spectral_axis.py
@@ -11,6 +11,16 @@ from ..spectra.spectrum import Spectrum
from astropy.tests.helper import assert_quantity_allclose
+def get_greenwich_earthlocation():
+ """
+ A helper function to get an EarthLocation for greenwich (without trying to
+ do a download)
+ """
+ import astropy.units as u
+ return EarthLocation (3980608.90246817*u.m, -102.47522911*u.m, 4966861.27310068*u.m)
+
+
+@pytest.mark.remote_data
def test_create_spectral_axis():
site = EarthLocation(lon=-0.001475 * u.deg, lat=51.477811 * u.deg, height=46 * u.m)
obstime = time.Time('2018-12-13 9:00')
|