Skip to content

Commit

Permalink
fix styles for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zoghbi-a committed Oct 16, 2023
1 parent 4086fb7 commit ef906c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 0 additions & 2 deletions pyvo/utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import astropy
from astropy.utils.console import ProgressBarOrSpinner
from astropy.utils.exceptions import AstropyUserWarning

from pyvo.dal.exceptions import PyvoUserWarning
from pyvo.utils.http import use_session
Expand All @@ -17,7 +16,6 @@
__all__ = ['http_download', 'aws_download']



# adapted from astroquery._download_file.
def http_download(url,
local_filepath=None,
Expand Down
8 changes: 5 additions & 3 deletions pyvo/utils/tests/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import requests_mock
import requests
from contextlib import contextmanager
import urllib

from astropy.utils.data import get_pkg_data_contents

Expand Down Expand Up @@ -206,8 +205,9 @@ def test_aws_download__wrong_cache(s3_mock):
assert os.path.getsize('somekey.txt') == 10
os.remove('somekey.txt')

## ---------------------- ##
## ---- Remote Tests ---- ##
# ----------------------
# ---- Remote Tests ----


@pytest.mark.remote_data
def test_http_download__noFile():
Expand Down Expand Up @@ -247,6 +247,7 @@ def test__s3_is_accessible_no_bucket_remote():
assert not accessible
assert '404' in str(exc)


@pytest.mark.remote_data
@pytest.mark.skipif('not HAS_MOTO')
def test__s3_is_accessible_no_key_remote():
Expand All @@ -269,6 +270,7 @@ def test__s3_is_accessible_yes_remote():
assert accessible
assert exc is None


@pytest.mark.remote_data
@pytest.mark.skipif('not HAS_MOTO')
def test__s3_is_accessible_download_remote():
Expand Down

0 comments on commit ef906c9

Please sign in to comment.