Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Nov 25, 2024
1 parent d62273d commit 56399d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mergin/test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2730,8 +2730,9 @@ def test_error_monthly_contributors_limit_hit(mcStorage: MerginClient):
{
"limits_override": {
"storage": client_workspace_storage,
"projects": 50,
"monthly_contributors": 0,
"api_allowed": True
"api_allowed": True,
}
},
{"Content-Type": "application/json"},
Expand All @@ -2741,7 +2742,7 @@ def test_error_monthly_contributors_limit_hit(mcStorage: MerginClient):

with pytest.raises(ClientError) as e:
mcStorage.create_project_and_push(test_project_fullname, project_dir)

assert e.value.server_code == ErrorCode.MonthlyContributorsLimitHit.value
assert e.value.detail == (
"Maximum number of workspace contributors is reached. "
Expand All @@ -2750,4 +2751,4 @@ def test_error_monthly_contributors_limit_hit(mcStorage: MerginClient):
assert e.value.http_error == 422
assert e.value.http_method == "POST"
assert e.value.contributors_quota == 0
assert e.value.url == f"{mcStorage.url}v1/project/testpluginstorage"
assert e.value.url == f"{mcStorage.url}v1/project/testpluginstorage"

0 comments on commit 56399d3

Please sign in to comment.