Skip to content

Commit 9523711

Browse files
Generic error message for publish changesets
1 parent 544419e commit 9523711

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/test_cli_changesets.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ def test_cli_publish_changesets_error(mock_request_post):
6060

6161
# sends expected request
6262
mock_request_post.return_value = MockResponse(
63-
{
64-
"message": "Access Denied: Contact Mapbox Account Manager to enable MTS Incremental Update"
65-
},
66-
401,
63+
{"message": "Mock failure message for publishing changeset"},
64+
400,
6765
)
6866
result = runner.invoke(
6967
publish_changesets, ["test.id", "tests/fixtures/changeset-payload.json"]
@@ -83,7 +81,7 @@ def test_cli_publish_changesets_error(mock_request_post):
8381
print(result.output)
8482
assert (
8583
clean_runner_output(result.output)
86-
== '{"message": "Access Denied: Contact Mapbox Account Manager to enable MTS Incremental Update"}'
84+
== '{"message": "Mock failure message for publishing changeset"}'
8785
)
8886

8987

0 commit comments

Comments
 (0)