Skip to content

Commit c105389

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

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
@@ -68,6 +68,7 @@ def mc2():
6868

6969
@pytest.fixture(scope="function")
7070
def mcStorage(request):
71+
teardown()
7172
client = create_client(API_USER, USER_PWD)
7273
workspace_name = create_workspace_for_client(client, STORAGE_WORKSPACE)
7374
print(workspace_name)
@@ -78,12 +79,12 @@ def mcStorage(request):
7879
break
7980
client_workspace_id = client_workspace["id"]
8081
client_workspace_storage = client_workspace["storage"]
81-
82+
8283
def teardown():
8384
# back to original values... (1 project, api allowed ...)
8485
client.patch(
8586
f"/v1/tests/workspaces/{client_workspace_id}",
86-
{"limits_override": {"storage": client_workspace_storage, "projects": 1, "monthly_contributors": 100, "api_allowed": True}},
87+
{"limits_override": {"storage": client_workspace_storage, "projects": 1, "monthly_contributors": 500, "api_allowed": True}},
8788
{"Content-Type": "application/json"},
8889
)
8990

0 commit comments

Comments
 (0)