Commit 158d0199 authored by Anthony Leung's avatar Anthony Leung
Browse files

Change SDK for public projects dataclasses

parent f0820aac
......@@ -13,7 +13,7 @@ code_quality:
.test_template: &test_template
stage: test
image: python:3-slim
image: python:3.9-slim
before_script:
- apt-get update && apt-get install -y git
- pip install -U pip
......
......@@ -29,9 +29,12 @@ class Project:
package: dict
notifications: dict
template: str
permission: dict
visibility: str
created: datetime.datetime
modified: datetime.datetime
workspace: dict
is_member: bool
url: str = None
def __str__(self):
......@@ -141,6 +144,8 @@ class Workspace:
description: str
uuid: uuid.UUID
short_uuid: str
visibility: str
is_member: bool
created: datetime.datetime
modified: datetime.datetime
......
......@@ -22,14 +22,10 @@ a_sample_project_response = {
"short_uuid": "1nsB-23lb-YKp6-4HZ4",
"name": "askanna_core.zip",
},
"notifications": {
"all": {
"email": []
},
"error": {
"email": []
}
},
"notifications": {"all": {"email": []}, "error": {"email": []}},
"visibility": "PUBLIC",
"permission": {},
"is_member": True,
"created": "2021-01-21T10:48:11.743045Z",
"modified": "2021-04-21T07:38:06.884762Z",
"description": None,
......
......@@ -11,6 +11,8 @@ a_sample_workspace_response = {
"name": "AskAnna",
"description": "",
"short_uuid": "3Cpy-QMzd-MVko-1rDQ",
"visibility": "PUBLIC",
"is_member": True,
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment