Skip to content

Commit 4878d95

Browse files
committed
testing monthly error
1 parent a8b0e5b commit 4878d95

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

.github/workflows/autotests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
2929
- name: Run tests
3030
run: |
31-
pytest --cov=mergin mergin/test/test_client.py -k dummy_mcStorage
31+
pytest --cov=mergin mergin/test/
3232
3333
- name: Submit coverage to Coveralls
3434
env:

mergin/test/test_client.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def teardown():
8787
"limits_override": {
8888
"storage": client_workspace_storage,
8989
"projects": 1,
90-
"monthly_contributors": 500,
90+
"monthly_contributors": 1000,
9191
"api_allowed": True,
9292
}
9393
},
@@ -2760,24 +2760,24 @@ def test_error_monthly_contributors_limit_hit(mcStorage: MerginClient):
27602760
assert e.value.url == f"{mcStorage.url}v1/project/testpluginstorage"
27612761

27622762

2763-
def test_dummy_mcStorage(mcStorage: MerginClient):
2764-
client_workspace = None
2765-
for workspace in mcStorage.workspaces_list():
2766-
if workspace["name"] == STORAGE_WORKSPACE:
2767-
client_workspace = workspace
2768-
break
2769-
client_workspace_id = client_workspace["id"]
2770-
client_workspace_storage = client_workspace["storage"]
2763+
# def test_dummy_mcStorage(mcStorage: MerginClient):
2764+
# client_workspace = None
2765+
# for workspace in mcStorage.workspaces_list():
2766+
# if workspace["name"] == STORAGE_WORKSPACE:
2767+
# client_workspace = workspace
2768+
# break
2769+
# client_workspace_id = client_workspace["id"]
2770+
# client_workspace_storage = client_workspace["storage"]
27712771

2772-
mcStorage.patch(
2773-
f"/v1/tests/workspaces/{client_workspace_id}",
2774-
{
2775-
"limits_override": {
2776-
"storage": client_workspace_storage,
2777-
"projects": 50,
2778-
"monthly_contributors": 1000,
2779-
"api_allowed": True,
2780-
}
2781-
},
2782-
{"Content-Type": "application/json"},
2783-
)
2772+
# mcStorage.patch(
2773+
# f"/v1/tests/workspaces/{client_workspace_id}",
2774+
# {
2775+
# "limits_override": {
2776+
# "storage": client_workspace_storage,
2777+
# "projects": 50,
2778+
# "monthly_contributors": 1000,
2779+
# "api_allowed": True,
2780+
# }
2781+
# },
2782+
# {"Content-Type": "application/json"},
2783+
# )

0 commit comments

Comments
 (0)