Skip to content

Commit 0bc450b

Browse files
committed
INTEGRALSWRQ-158: download methods replaced by get only
1 parent ed9348f commit 0bc450b

File tree

13 files changed

+458
-771
lines changed

13 files changed

+458
-771
lines changed

astroquery/esa/integral/core.py

Lines changed: 102 additions & 335 deletions
Large diffs are not rendered by default.
11.4 KB
Binary file not shown.
4.32 MB
Binary file not shown.
1.46 MB
Binary file not shown.
1.46 MB
Binary file not shown.

astroquery/esa/integral/tests/mocks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def get_mock_mosaic():
113113
}]
114114

115115

116-
def get_mock_response(message):
116+
def get_mock_response():
117117
error_message = "Mocked HTTP error"
118118
mock_response = Mock()
119119
mock_response.raise_for_status.side_effect = HTTPError(error_message)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2+
import os
3+
4+
5+
# setup paths to the test data
6+
# can specify a single file or a list of files
7+
def get_package_data():
8+
paths = [os.path.join('data', '*.vot'),
9+
os.path.join('data', '*.xml'),
10+
os.path.join('data', '*.zip'),
11+
os.path.join('data', '*.gz'),
12+
os.path.join('data', '*.tar'),
13+
os.path.join('data', '*.fits'),
14+
os.path.join('data', '*.txt'),
15+
] # etc, add other extensions
16+
# you can also enlist files individually by names
17+
# finally construct and return a dict for the sub module
18+
return {'astroquery.esa.integral.tests': paths}

astroquery/esa/integral/tests/test_isla_tap.py

Lines changed: 114 additions & 146 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"""
2+
================
3+
UTILS Tests Init
4+
================
5+
6+
European Space Astronomy Centre (ESAC)
7+
European Space Agency (ESA)
8+
9+
"""
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2+
import os
3+
4+
5+
# setup paths to the test data
6+
# can specify a single file or a list of files
7+
def get_package_data():
8+
paths = [os.path.join('data', '*.vot'),
9+
os.path.join('data', '*.xml'),
10+
os.path.join('data', '*.zip'),
11+
os.path.join('data', '*.gz'),
12+
os.path.join('data', '*.tar'),
13+
os.path.join('data', '*.fits'),
14+
os.path.join('data', '*.txt'),
15+
] # etc, add other extensions
16+
# you can also enlist files individually by names
17+
# finally construct and return a dict for the sub module
18+
return {'astroquery.esa.utils.tests': paths}

0 commit comments

Comments
 (0)