Skip to content

Commit b30c9a7

Browse files
committed
fixing monthly contributors error 2
1 parent c105389 commit b30c9a7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

mergin/test/test_client.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def mc2():
6868

6969
@pytest.fixture(scope="function")
7070
def mcStorage(request):
71-
teardown()
7271
client = create_client(API_USER, USER_PWD)
7372
workspace_name = create_workspace_for_client(client, STORAGE_WORKSPACE)
7473
print(workspace_name)
@@ -79,7 +78,13 @@ def mcStorage(request):
7978
break
8079
client_workspace_id = client_workspace["id"]
8180
client_workspace_storage = client_workspace["storage"]
82-
81+
82+
client.patch(
83+
f"/v1/tests/workspaces/{client_workspace_id}",
84+
{"limits_override": {"storage": client_workspace_storage, "projects": 1, "monthly_contributors": 500, "api_allowed": True}},
85+
{"Content-Type": "application/json"},
86+
)
87+
8388
def teardown():
8489
# back to original values... (1 project, api allowed ...)
8590
client.patch(

0 commit comments

Comments
 (0)