• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

chift-oneapi / chift-python-sdk / 15276047364

27 May 2025 01:04PM UTC coverage: 94.743% (-0.09%) from 94.83%
15276047364

Pull #43

github

web-flow
Merge 9fe4affd8 into 22d9be47e
Pull Request #43: feat: allow requesting raw-data

7 of 11 new or added lines in 2 files covered. (63.64%)

3857 of 4071 relevant lines covered (94.74%)

0.95 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/chift/models/syncs/__init__.py
1
from typing import ClassVar
1✔
2

3
from chift.api.mixins import CreateMixin, DeleteMixin, ListMixin, ReadMixin
1✔
4
from chift.openapi.models import Flow as FlowModel
1✔
5
from chift.openapi.models import Sync as SyncModel
1✔
6

7

8
class Sync(ReadMixin, ListMixin, CreateMixin):
1✔
9
    chift_vertical: ClassVar = "syncs"
1✔
10
    model = SyncModel
1✔
11
    chift_model = None
1✔
12
    extra_path = None
1✔
13
    consumer_id = None
1✔
14
    connection_id = None
1✔
15

16
    @classmethod
1✔
17
    def get(cls, chift_id, client=None):
1✔
18
        return super().get(Sync, chift_id, client=client)
1✔
19

20
    @classmethod
1✔
21
    def all(cls, client=None):
1✔
22
        return super().all(Sync, client=client)
1✔
23

24

25
class Flow(
1✔
26
    ListMixin[FlowModel], CreateMixin[FlowModel], DeleteMixin, ReadMixin[FlowModel]
27
):
28
    chift_vertical: ClassVar = "syncs"
1✔
29
    model = FlowModel
1✔
30
    chift_model = None
1✔
31
    extra_path = None
1✔
32
    consumer_id = None
1✔
33
    connection_id = None
1✔
34

35
    @classmethod
1✔
36
    def create(self, sync_id, data, client=None, params=None):
1✔
37
        self.extra_path = f"{sync_id}/flows"
×
38
        return super().create(Flow, data, client=client, params=params)
×
39

40
    @classmethod
1✔
41
    def delete(self, sync_id, flow_id, client=None, params=None):
1✔
42
        self.extra_path = f"{sync_id}/flows/{flow_id}"
×
43
        return super().delete(Flow, chift_id=None, client=client, params=params)
×
44

45
    @classmethod
1✔
46
    def trigger(self, sync_id, flow_id, data, client=None):
1✔
47
        self.extra_path = f"{sync_id}/flows/{flow_id}/event"
×
48
        return super().create(Flow, data, client=client, map_model=False)
×
49

50
    @classmethod
1✔
51
    def chainexecution(self, sync_id, flow_id, chainexecution_id, client=None):
1✔
52
        self.extra_path = f"/flows/{flow_id}/executions/{chainexecution_id}"
×
53
        return super().get(Flow, sync_id, client=client, map_model=False)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc