-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathmock_organization.py
More file actions
28 lines (25 loc) · 908 Bytes
/
mock_organization.py
File metadata and controls
28 lines (25 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import datetime
from workos.types.organizations import Organization
from workos.types.organizations.organization_domain import OrganizationDomain
class MockOrganization(Organization):
def __init__(self, id):
now = datetime.datetime.now().isoformat()
super().__init__(
object="organization",
id=id,
name="Foo Corporation",
allow_profiles_outside_organization=False,
created_at=now,
updated_at=now,
domains=[
OrganizationDomain(
object="organization_domain",
id="org_domain_01EHT88Z8WZEFWYPM6EC9BX2R8",
organization_id="org_12345",
domain="example.io",
created_at=now,
updated_at=now,
)
],
metadata={"key": "value"},
)