Coverage for chalicelib/core/collaborations/collaboration_base.py: 77%
35 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 12:56 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 12:56 +0000
1from abc import ABC, abstractmethod
3import schemas
6class BaseCollaboration(ABC):
7 @classmethod
8 @abstractmethod
9 def add(cls, tenant_id, data: schemas.AddCollaborationSchema):
10 pass
12 @classmethod
13 @abstractmethod
14 def say_hello(cls, url):
15 pass
17 @classmethod
18 @abstractmethod
19 def send_raw(cls, tenant_id, webhook_id, body):
20 pass
22 @classmethod
23 @abstractmethod
24 def send_batch(cls, tenant_id, webhook_id, attachments):
25 pass
27 @classmethod
28 @abstractmethod
29 def __share(cls, tenant_id, integration_id, attachments, extra=None):
30 pass
32 @classmethod
33 @abstractmethod
34 def share_session(cls, tenant_id, project_id, session_id, user, comment, project_name=None, integration_id=None):
35 pass
37 @classmethod
38 @abstractmethod
39 def share_error(cls, tenant_id, project_id, error_id, user, comment, project_name=None, integration_id=None):
40 pass
42 @classmethod
43 @abstractmethod
44 def get_integration(cls, tenant_id, integration_id=None):
45 pass