Skip to content

Commit

Permalink
Apply black for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Feb 12, 2020
1 parent 20dfa4a commit a092769
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ exclude = '''
^/\..*
| ^/docs/
| ^/github2pypi/
| ^/tests/
)
'''
4 changes: 2 additions & 2 deletions tests/test_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@


def test_download():
url = 'https://raw.githubusercontent.com/wkentaro/gdown/3.1.0/gdown/__init__.py' # NOQA
output = '/tmp/gdown_r'
url = "https://raw.githubusercontent.com/wkentaro/gdown/3.1.0/gdown/__init__.py" # NOQA
output = "/tmp/gdown_r"

# Usage before https://github.com/wkentaro/gdown/pull/32
assert download(url, output, quiet=False) == output
Expand Down
10 changes: 5 additions & 5 deletions tests/test_parse_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@


def test_parse_url():
file_id = '0B_NiLAzvehC9R2stRmQyM3ZiVjQ'
file_id = "0B_NiLAzvehC9R2stRmQyM3ZiVjQ"

# list of (url, expected, check_warn)
urls = [
(
'https://drive.google.com/open?id={}'.format(file_id),
"https://drive.google.com/open?id={}".format(file_id),
(file_id, False),
True,
),
(
'https://drive.google.com/uc?id={}'.format(file_id),
"https://drive.google.com/uc?id={}".format(file_id),
(file_id, True),
False,
),
(
'https://drive.google.com/file/d/{}/view?usp=sharing'.format(
"https://drive.google.com/file/d/{}/view?usp=sharing".format(
file_id
), # NOQA
(file_id, False),
True,
),
(
'https://drive.google.com/a/jsk.imi.i.u-tokyo.ac.jp/uc?id={}&export=download'.format( # NOQA
"https://drive.google.com/a/jsk.imi.i.u-tokyo.ac.jp/uc?id={}&export=download".format( # NOQA
file_id
),
(file_id, True),
Expand Down

0 comments on commit a092769

Please sign in to comment.