From 71edbdcd429e4f558b0f749bed3b5bd326436996 Mon Sep 17 00:00:00 2001 From: dnomadb Date: Mon, 30 Sep 2019 10:05:14 -0700 Subject: [PATCH] :shh: --- tests/test_cli_sources.py | 3 +-- tilesets/scripts/cli.py | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/tests/test_cli_sources.py b/tests/test_cli_sources.py index 13615d2..0828771 100644 --- a/tests/test_cli_sources.py +++ b/tests/test_cli_sources.py @@ -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""" ) diff --git a/tilesets/scripts/cli.py b/tilesets/scripts/cli.py index 423c9c9..d4460bf 100644 --- a/tilesets/scripts/cli.py +++ b/tilesets/scripts/cli.py @@ -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)