Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinBuira committed Jan 14, 2025
1 parent 0c71e53 commit 1c0ec53
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions mergin/test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2763,23 +2763,19 @@ def test_workspace_requests(mc2: MerginClient):
project_info = mc2.project_info(test_project_fullname)
ws_id = project_info.get("workspace_id")

usage = mc2.workspace_usage(ws_id)
usage = mc2.workspace_usage(ws_id)
# Check type and common value
assert type(usage) == dict
assert usage["api"]["allowed"] == True
assert usage["history"]["quota"] == 214748364800
assert usage["history"]["usage"] == 0

service = mc2.workspace_service(ws_id)
service = mc2.workspace_service(ws_id)
# Check type and common value
assert type(service) == dict
assert service["action_required"] == False
assert service["plan"]
assert service["plan"]["is_paid_plan"] == False
assert service["plan"]["product_id"] == None
assert service["plan"]["type"] == 'custom'
assert service["plan"]["type"] == "custom"
assert service["subscription"] == None




0 comments on commit 1c0ec53

Please # to comment.