Skip to content

Commit 089e777

Browse files
committed
INTEGRALSWRQ-158: codestyle after remote tests for integral
1 parent 651d103 commit 089e777

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

astroquery/esa/integral/core.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def get_timeline(self, coordinates, *, radius=14):
413413
return {'total_items': total_items, 'fraFC': fraFC, 'totEffExpo': totEffExpo, 'timeline': timeline}
414414
except HTTPError as e:
415415
if 'None science windows have been selected' in e.response.text:
416-
raise ValueError(f"No timeline is available for the current coordinates and radius.")
416+
raise ValueError('No timeline is available for the current coordinates and radius.')
417417
else:
418418
raise e
419419

@@ -434,7 +434,6 @@ def get_epochs(self, *, target_name=None, instrument=None, band=None):
434434
An astropy.table object containing the available epochs
435435
"""
436436

437-
438437
value = self.__get_instrument_or_band(instrument=instrument, band=band)
439438
instrument_oid, band_oid = self.__get_oids(value)
440439
if target_name:
@@ -689,8 +688,8 @@ def get_source_metadata(self, target_name):
689688
}
690689
try:
691690
return esautils.execute_servlet_request(url=conf.ISLA_SERVLET,
692-
tap=self.tap,
693-
query_params=query_params)
691+
tap=self.tap,
692+
query_params=query_params)
694693
except HTTPError as e:
695694
if 'Source not found in the database' in e.response.text:
696695
raise ValueError(f"Target {target_name} cannot be resolved for ISLA")

astroquery/esa/integral/tests/test_isla_remote.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from astroquery.esa.integral import IntegralClass
1414
import pytest
1515
from pyvo import DALQueryError
16-
from requests import HTTPError
1716

1817

1918
def data_path(filename):
@@ -183,7 +182,6 @@ def test_get_long_term_timeseries(self):
183182
ltt = isla.get_long_term_timeseries(target_name='star', instrument='jem-x')
184183
assert ltt is None
185184

186-
187185
def test_get_short_term_timeseries(self):
188186
isla = IntegralClass()
189187
stt = isla.get_short_term_timeseries(target_name='J011705.1-732636', band='28_40', epoch='0745_06340000001')
@@ -246,4 +244,3 @@ def test_get_mosaics(self):
246244
with pytest.raises(ValueError) as err:
247245
isla.get_mosaic(epoch='123456', instrument='ibis')
248246
assert 'Epoch 123456 is not available for this target and instrument/band.' in err.value.args[0]
249-

0 commit comments

Comments
 (0)