Skip to content

Commit

Permalink
test fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Nov 26, 2024
1 parent 56399d3 commit db90970
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mergin/test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def teardown():
# back to original values... (1 project, api allowed ...)
client.patch(
f"/v1/tests/workspaces/{client_workspace_id}",
{"limits_override": {"storage": client_workspace_storage, "projects": 1, "api_allowed": True}},
{"limits_override": {"storage": client_workspace_storage, "projects": 1, "monthly_contributors": 5, "api_allowed": True}},
{"Content-Type": "application/json"},
)

Expand Down Expand Up @@ -2732,7 +2732,7 @@ def test_error_monthly_contributors_limit_hit(mcStorage: MerginClient):
"storage": client_workspace_storage,
"projects": 50,
"monthly_contributors": 0,
"api_allowed": True,
"api_allowed": True
}
},
{"Content-Type": "application/json"},
Expand All @@ -2745,8 +2745,7 @@ def test_error_monthly_contributors_limit_hit(mcStorage: MerginClient):

assert e.value.server_code == ErrorCode.MonthlyContributorsLimitHit.value
assert e.value.detail == (
"Maximum number of workspace contributors is reached. "
"Please upgrade your subscription to push changes or create projects."
"Maximum number of workspace contributors is reached. Please upgrade your subscription to push changes or create projects. (MonthlyContributorsLimitHit)"
)
assert e.value.http_error == 422
assert e.value.http_method == "POST"
Expand Down

0 comments on commit db90970

Please sign in to comment.