Skip to content

Commit 699859b

Browse files
Clara Brasseurbsipocz
authored andcommitted
adding pragma no cover on the functions I had to remove the tests for
1 parent c7e517e commit 699859b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

astroquery/mast/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def get_token(self, *args, **kwargs):
213213
else:
214214
raise Exception("Unknown MAST Auth mode %s" % self._auth_mode)
215215

216-
def session_info(self, *args, **kwargs):
216+
def session_info(self, *args, **kwargs): # pragma: no cover
217217
"""
218218
Displays information about current MAST user, and returns user info dictionary.
219219

astroquery/mast/tesscut.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def _tesscut_livecheck(self): # pragma: no cover
5959
raise RemoteServiceError("The TESSCut service hasn't been released yet.\n"
6060
"Try again Soon!\n( More info at https://archive.stsci.edu/tess/ )")
6161

62-
def get_sectors(self, coordinates, radius=0.2*u.deg):
62+
def get_sectors(self, coordinates, radius=0.2*u.deg): # pragma: no cover
6363
"""
6464
Get a list of the TESS data sectors whose footprints intersect
6565
with the given search area.
@@ -117,7 +117,7 @@ def get_sectors(self, coordinates, radius=0.2*u.deg):
117117
warnings.warn("Coordinates are not in any TESS sector.", NoResultsWarning)
118118
return Table(sector_dict)
119119

120-
def download_cutouts(self, coordinates, size=5, sector=None, path=".", inflate=True):
120+
def download_cutouts(self, coordinates, size=5, sector=None, path=".", inflate=True): # pragma: no cover
121121
"""
122122
Download cutout target pixel file(s) around the given coordinates with indicated size.
123123
@@ -225,7 +225,7 @@ def download_cutouts(self, coordinates, size=5, sector=None, path=".", inflate=T
225225
localpath_table['Local Path'] = [path+x for x in cutout_files]
226226
return localpath_table
227227

228-
def get_cutouts(self, coordinates, size=5, sector=None):
228+
def get_cutouts(self, coordinates, size=5, sector=None): # pragma: no cover
229229
"""
230230
Get cutout target pixel file(s) around the given coordinates with indicated size,
231231
and return them as a list of `~astropy.io.fits.HDUList` objects.

0 commit comments

Comments
 (0)