Skip to content

Commit 8646c13

Browse files
committed
fixing url
1 parent a28b35e commit 8646c13

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mergin/test/test_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2724,9 +2724,10 @@ def test_error_monthly_contributors_limit_hit(mcStorage: MerginClient):
27242724
break
27252725

27262726
client_workspace_id = client_workspace["id"]
2727+
client_workspace_storage = client_workspace["storage"]
27272728
mcStorage.patch(
27282729
f"/v1/tests/workspaces/{client_workspace_id}",
2729-
{"limits_override": {"monthly_contributors": 0}},
2730+
{"limits_override": {"storage": client_workspace_storage, "monthly_contributors": 0, "projects": 1, "api_allowed": True}},
27302731
{"Content-Type": "application/json"},
27312732
)
27322733

@@ -2742,5 +2743,5 @@ def test_error_monthly_contributors_limit_hit(mcStorage: MerginClient):
27422743
)
27432744
assert e.value.http_error == 422
27442745
assert e.value.http_method == "POST"
2745-
assert e.value.url == f"{mc.url}v1/project/{API_USER}"
2746+
assert e.value.url == f"{mcStorage.url}v1/project/{STORAGE_WORKSPACE}"
27462747
assert e.value.contributors_quota == 0

0 commit comments

Comments
 (0)