Skip to content

Commit db90970

Browse files
committed
test fix 2
1 parent 56399d3 commit db90970

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

mergin/test/test_client.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def teardown():
8383
# back to original values... (1 project, api allowed ...)
8484
client.patch(
8585
f"/v1/tests/workspaces/{client_workspace_id}",
86-
{"limits_override": {"storage": client_workspace_storage, "projects": 1, "api_allowed": True}},
86+
{"limits_override": {"storage": client_workspace_storage, "projects": 1, "monthly_contributors": 5, "api_allowed": True}},
8787
{"Content-Type": "application/json"},
8888
)
8989

@@ -2732,7 +2732,7 @@ def test_error_monthly_contributors_limit_hit(mcStorage: MerginClient):
27322732
"storage": client_workspace_storage,
27332733
"projects": 50,
27342734
"monthly_contributors": 0,
2735-
"api_allowed": True,
2735+
"api_allowed": True
27362736
}
27372737
},
27382738
{"Content-Type": "application/json"},
@@ -2745,8 +2745,7 @@ def test_error_monthly_contributors_limit_hit(mcStorage: MerginClient):
27452745

27462746
assert e.value.server_code == ErrorCode.MonthlyContributorsLimitHit.value
27472747
assert e.value.detail == (
2748-
"Maximum number of workspace contributors is reached. "
2749-
"Please upgrade your subscription to push changes or create projects."
2748+
"Maximum number of workspace contributors is reached. Please upgrade your subscription to push changes or create projects. (MonthlyContributorsLimitHit)"
27502749
)
27512750
assert e.value.http_error == 422
27522751
assert e.value.http_method == "POST"

0 commit comments

Comments
 (0)