Skip to content

Commit 56399d3

Browse files
committed
test fix
1 parent d62273d commit 56399d3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mergin/test/test_client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2730,8 +2730,9 @@ def test_error_monthly_contributors_limit_hit(mcStorage: MerginClient):
27302730
{
27312731
"limits_override": {
27322732
"storage": client_workspace_storage,
2733+
"projects": 50,
27332734
"monthly_contributors": 0,
2734-
"api_allowed": True
2735+
"api_allowed": True,
27352736
}
27362737
},
27372738
{"Content-Type": "application/json"},
@@ -2741,7 +2742,7 @@ def test_error_monthly_contributors_limit_hit(mcStorage: MerginClient):
27412742

27422743
with pytest.raises(ClientError) as e:
27432744
mcStorage.create_project_and_push(test_project_fullname, project_dir)
2744-
2745+
27452746
assert e.value.server_code == ErrorCode.MonthlyContributorsLimitHit.value
27462747
assert e.value.detail == (
27472748
"Maximum number of workspace contributors is reached. "
@@ -2750,4 +2751,4 @@ def test_error_monthly_contributors_limit_hit(mcStorage: MerginClient):
27502751
assert e.value.http_error == 422
27512752
assert e.value.http_method == "POST"
27522753
assert e.value.contributors_quota == 0
2753-
assert e.value.url == f"{mcStorage.url}v1/project/testpluginstorage"
2754+
assert e.value.url == f"{mcStorage.url}v1/project/testpluginstorage"

0 commit comments

Comments
 (0)