Skip to content

Commit

Permalink
:shh:
Browse files Browse the repository at this point in the history
  • Loading branch information
dnomadb committed Sep 30, 2019
1 parent 9427b07 commit 71edbdc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions tests/test_cli_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ def test_cli_add_source(mock_request_post, MockResponse):
assert result.exit_code == 0

assert (
result.output
== """Adding Point feature to mapbox://tileset-source/test-user/hello-world\n{"id": "mapbox://tileset-source/test-user/hello-world"}\n"""
result.output == """{"id": "mapbox://tileset-source/test-user/hello-world"}\n"""
)


Expand Down
5 changes: 0 additions & 5 deletions tilesets/scripts/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,6 @@ def add_source(ctx, username, id, features, no_validation, token=None, indent=No
if not no_validation:
utils.validate_geojson(feature)

click.echo(
f"Adding {feature['geometry']['type']} feature to mapbox://tileset-source/{username}/{id}",
err=True,
)

io.write((json.dumps(feature) + "\n").encode("utf-8"))

io.seek(0)
Expand Down

0 comments on commit 71edbdc

Please sign in to comment.