Skip to content

Commit

Permalink
add updated fields
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklvsa committed Oct 18, 2024
1 parent ffe0a7c commit 7f20ea3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_cli_estimate_cu.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_cli_estimate_cu_tileset_no_sources(mock_request_get, MockResponse):
result = runner.invoke(estimate_cu, [tileset_id])
mock_request_get.assert_called_with(
f"https://api.mapbox.com/tilesets/v1/{tileset_id}/estimate",
params={"band_count": 15, "access_token": "pk.eyJ1IjoidGVzdC11c2VyIn0K"},
params={"filesize": 0, "band_count": 15, "access_token": "pk.eyJ1IjoidGVzdC11c2VyIn0K"},
)

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

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

assert result.exit_code == 0
Expand Down

0 comments on commit 7f20ea3

Please sign in to comment.