Skip to content

Commit d064ef0

Browse files
author
Allison Zheng
authored
Click upgrade to 7.1.2 (#102)
* errors.py formatting * fixed quotes in assertions * upgraded click version in setup: * updated requirements click version
1 parent 90192c4 commit d064ef0

File tree

6 files changed

+8
-9
lines changed

6 files changed

+8
-9
lines changed

mapbox_tilesets/errors.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ def __init__(self, message):
2020

2121

2222
class TilesetNameError(TilesetsError):
23-
"""Not a valid tileset id
24-
"""
23+
"""Not a valid tileset id"""
2524

2625
def __init__(self, tileset_id):
2726
self.tileset_id = tileset_id

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
boto3==1.9.99
2-
Click==7.0
2+
Click==7.1.2
33
cligj==0.5.0
44
requests==2.21.0
55
requests-toolbelt==0.9.1

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def read(fname):
2828
packages=find_packages(exclude=["ez_setup", "examples", "tests"]),
2929
install_requires=[
3030
"boto3",
31-
"click~=7.0",
31+
"click~=7.1.2",
3232
"cligj",
3333
"requests",
3434
"requests-toolbelt",

tests/test_cli_create.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def test_cli_create_missing_recipe():
1414
# missing --recipe option
1515
result = runner.invoke(create, ["test.id"])
1616
assert result.exit_code == 2
17-
assert 'Missing option "--recipe"' in result.output
17+
assert "Missing option '--recipe' / '-r'" in result.output
1818

1919

2020
@pytest.mark.usefixtures("token_environ")
@@ -25,7 +25,7 @@ def test_cli_create_missing_name():
2525
create, ["test.id", "--recipe", "tests/fixtures/recipe.json"]
2626
)
2727
assert result.exit_code == 2
28-
assert 'Missing option "--name"' in result.output
28+
assert "Missing option '--name'" in result.output
2929

3030

3131
@pytest.mark.usefixtures("token_environ")
@@ -140,7 +140,7 @@ def test_cli_create_private_invalid(mock_request_post, MockResponse):
140140
)
141141
assert result.exit_code == 2
142142
assert (
143-
'Invalid value for "--privacy" / "-p": invalid choice: invalid-privacy-value. (choose from public, private)'
143+
"Invalid value for '--privacy' / '-p': invalid choice: invalid-privacy-value. (choose from public, private)"
144144
in result.output
145145
)
146146

tests/test_cli_update_recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test_cli_update_recipe_no_recipe():
1212
runner = CliRunner()
1313
result = runner.invoke(update_recipe, ["test.id", "does/not/exist/recipe.json"])
1414
assert result.exit_code == 2
15-
assert 'Path "does/not/exist/recipe.json" does not exist' in result.output
15+
assert "Path 'does/not/exist/recipe.json' does not exist" in result.output
1616

1717

1818
@pytest.mark.usefixtures("token_environ")

tests/test_cli_validate_recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_cli_validate_recipe_no_recipe():
2121
runner = CliRunner()
2222
result = runner.invoke(validate_recipe, ["does/not/exist/recipe.json"])
2323
assert result.exit_code == 2
24-
assert 'Path "does/not/exist/recipe.json" does not exist' in result.output
24+
assert "Path 'does/not/exist/recipe.json' does not exist" in result.output
2525

2626

2727
@pytest.mark.usefixtures("token_environ")

0 commit comments

Comments
 (0)