Skip to content

Commit fd2b63c

Browse files
committed
added internet connection testing
1 parent 9484530 commit fd2b63c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

astroquery/tests/test_internet.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
2+
from astropy.tests.helper import remote_data
3+
import requests
4+
5+
@remote_data
6+
def test_net_connection():
7+
R = requests.post('http://httpbin.org/post',
8+
headers={'User-Agent':'astropy:astroquery.0.1.dev'})
9+
R.raise_for_status()

0 commit comments

Comments
 (0)