Workspace now response to .members

This commit is contained in:
richard-dds
2018-08-22 11:49:05 -04:00
parent 379461e6fb
commit 9875a11860
4 changed files with 39 additions and 57 deletions

View File

@@ -6,6 +6,37 @@ from atst.models.types import Id
from atst.models.mixins import TimestampsMixin
MOCK_MEMBERS = [
{
"first_name": "Danny",
"last_name": "Knight",
"email": "dknight@thenavy.mil",
"dod_id": "1257892124",
"workspace_role": "Developer",
"status": "Pending",
"num_projects": "4",
},
{
"first_name": "Mario",
"last_name": "Hudson",
"email": "mhudson@thearmy.mil",
"dod_id": "4357892125",
"workspace_role": "CCPO",
"status": "Active",
"num_projects": "0",
},
{
"first_name": "Louise",
"last_name": "Greer",
"email": "lgreer@theairforce.mil",
"dod_id": "7257892125",
"workspace_role": "Admin",
"status": "Pending",
"num_projects": "43",
},
]
class Workspace(Base, TimestampsMixin):
__tablename__ = "workspaces"
@@ -38,3 +69,7 @@ class Workspace(Base, TimestampsMixin):
@property
def task_order(self):
return {"number": "task-order-number"}
@property
def members(self):
return MOCK_MEMBERS