Skip to content

Commit 7f20ea3

Browse files
committed
add updated fields
1 parent ffe0a7c commit 7f20ea3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_cli_estimate_cu.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_cli_estimate_cu_tileset_no_sources(mock_request_get, MockResponse):
2020
result = runner.invoke(estimate_cu, [tileset_id])
2121
mock_request_get.assert_called_with(
2222
f"https://api.mapbox.com/tilesets/v1/{tileset_id}/estimate",
23-
params={"band_count": 15, "access_token": "pk.eyJ1IjoidGVzdC11c2VyIn0K"},
23+
params={"filesize": 0, "band_count": 15, "access_token": "pk.eyJ1IjoidGVzdC11c2VyIn0K"},
2424
)
2525

2626
assert result.exit_code == 1
@@ -49,7 +49,7 @@ def test_cli_estimate_cu_tileset_with_sources_raw(
4949
)
5050
mock_request_get.assert_called_with(
5151
f"https://api.mapbox.com/tilesets/v1/{tileset_id}/estimate",
52-
params={"band_count": 15, "access_token": "pk.eyJ1IjoidGVzdC11c2VyIn0K"},
52+
params={"filesize": 0, "band_count": 15, "access_token": "pk.eyJ1IjoidGVzdC11c2VyIn0K"},
5353
)
5454

5555
assert result.exit_code == 0
@@ -73,7 +73,7 @@ def test_cli_estimate_cu_tileset_with_sources(
7373
result = runner.invoke(estimate_cu, [tileset_id, "-s", "/my/sources/*.grib2"])
7474
mock_request_get.assert_called_with(
7575
f"https://api.mapbox.com/tilesets/v1/{tileset_id}/estimate",
76-
params={"band_count": 15, "access_token": "pk.eyJ1IjoidGVzdC11c2VyIn0K"},
76+
params={"filesize": 0, "band_count": 15, "access_token": "pk.eyJ1IjoidGVzdC11c2VyIn0K"},
7777
)
7878

7979
assert result.exit_code == 0

0 commit comments

Comments
 (0)