Skip to content

Commit bd32125

Browse files
committed
Mark tests with remote-data and require pytest-doctestplus 1.6 to do so.
1 parent 874e4c2 commit bd32125

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

docs/sbpy/dynamics.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Convert to/from `Ephem` and `SkyCoord`
5656
State objects may be initialized from ephemeris objects (`~sbpy.data.Ephem`), provided they contain time, and 3D position and velocity:
5757

5858
.. doctest-requires:: astroquery
59+
.. doctest-remote-data::
5960

6061
>>> from sbpy.data import Ephem
6162
>>> eph = Ephem.from_horizons("9P",
@@ -67,6 +68,7 @@ State objects may be initialized from ephemeris objects (`~sbpy.data.Ephem`), pr
6768
And `State` may be converted to an `Ephem` object:
6869

6970
.. doctest-requires:: astroquery
71+
.. doctest-remote-data::
7072

7173
>>> eph = tempel1.to_ephem() # doctest: +REMOTE_DATA
7274

@@ -174,6 +176,7 @@ Fetching states from Horizons
174176
`Ephem.from_horizons` returns equatorial coordinates in the ICRF reference frame, which has its origin at the Solar System barycenter. For `State` to correctly convert the ephemeris object to vectors, we need to set the Horizons observer to the Solar System barycenter (``"@ssb"``). However, dynamical integrations are done in a heliocentric reference frame, so we transform the result to ``"heliocentriceclipticiau76"``:
175177

176178
.. doctest-requires:: astroquery
179+
.. doctest-remote-data::
177180

178181
>>> eph = Ephem.from_horizons(
179182
... "48P",
@@ -496,6 +499,7 @@ The following example compares syndynes to a Spitzer Space Telesocpe image of co
496499
The `sbpy` testing suite shows that arcsecond-level accuracy is possible, but this is generally not enough for direct comparison to typical images of comets, which need sub-arcsecond alignment. The accuracy of the coordinates object depends on the the comet and observer states, but also on whether or not light travel time is accounted for, and the accuracy of the orbit integrator.
497500

498501
.. doctest-requires:: scipy,astroquery,matplotlib
502+
.. doctest-remote-data::
499503

500504
>>> from astropy.io import fits
501505
>>> from astropy.wcs import WCS

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ test = [
6767
"pytest>=8.0",
6868
"pytest-astropy>=0.10",
6969
"pytest-astropy-header>=0.2.1",
70-
"pytest-doctestplus>=0.12",
70+
"pytest-doctestplus>=1.6",
7171
"pytest-remotedata",
7272
"pytest-xdist",
7373
"coverage",

0 commit comments

Comments
 (0)