Skip to content

Commit f1e79a6

Browse files
volodymyrssbsipocz
authored andcommitted
style
1 parent 84af299 commit f1e79a6

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

astroquery/heasarc/core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ def _fallback(self, text):
223223
data = StringIO(text.replace(old_table, "\n".join(new_table)))
224224
return Table.read(data, hdu=1, unit_parse_strict='silent')
225225

226-
227226
def _parse_result(self, response, verbose=False):
228227
# if verbose is False then suppress any VOTable related warnings
229228
if not verbose:

astroquery/heasarc/tests/parametrization.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def get_mockreturn(session, method, url, params=None, timeout=10, **kwargs):
4747
content = open(filename, "rt").read()
4848
except FileNotFoundError:
4949
log.error(
50-
f"no stored mock data in {filename} for url=\"{url}\" and params=\"{params}\""
50+
f'no stored mock data in {filename} for url="{url}" and params="{params}"'
5151
"perhaps you need to clean test data and regenerate it? "
5252
"It will be regenerated automatically if cleaned, try `rm -fv astroquery/heasarc/tests/data/* build`"
5353
)
@@ -65,7 +65,7 @@ def save_response_of_get(session, method, url, params=None, timeout=10, **kwargs
6565
filename = filename_for_request(url, params, output=True)
6666

6767
with open(filename, "wt") as f:
68-
log.info(f"saving output to {filename} for url=\"{url}\" and params=\"{params}\"")
68+
log.info(f'saving output to {filename} for url="{url}" and params="{params}"')
6969
log.warning(
7070
f"you may want to run `cp -fv {os.path.dirname(filename)}/* astroquery/heasarc/tests/data/; rm -rfv build`"
7171
)
@@ -89,7 +89,7 @@ def patch_get(request):
8989
return mp
9090

9191

92-
def have_mock_data():
92+
def have_mock_data():
9393
return len(glob.glob(data_path("*"))) > 0
9494

9595

astroquery/heasarc/tests/setup_package.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
import os
55

6+
67
def get_package_data():
7-
paths = [os.path.join('data', '*.dat'),
8-
]
9-
return {'astroquery.heasarc.tests': paths}
8+
paths = [
9+
os.path.join("data", "*.dat"),
10+
]
11+
return {"astroquery.heasarc.tests": paths}

0 commit comments

Comments
 (0)