Skip to content

Commit d051092

Browse files
volodymyrssbsipocz
authored andcommitted
few comments and docstring
1 parent 6a5020d commit d051092

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

astroquery/heasarc/tests/parametrization.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def save_response_of_get(session, method, url, params=None, timeout=10, **kwargs
6868
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`"
71+
"you may also want to `git add astroquery/heasarc/tests/data/*`."
7172
)
7273
f.write(text)
7374

@@ -76,6 +77,10 @@ def save_response_of_get(session, method, url, params=None, timeout=10, **kwargs
7677

7778
@pytest.fixture(autouse=True)
7879
def patch_get(request):
80+
"""
81+
If mode is not remote, patch `requests.Session` such that all `request`s will
82+
return either a saved response or a locally defined get_mockreturn.
83+
"""
7984
mode = request.param
8085
mp = request.getfixturevalue("monkeypatch")
8186

0 commit comments

Comments
 (0)