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

chift-oneapi / chift-python-sdk / 6237040820

19 Sep 2023 02:31PM UTC coverage: 99.338%. Remained the same
6237040820

push

github-actions

tdetry
[0.1.13] invoicing: use model with pdf

1 of 1 new or added line in 1 file covered. (100.0%)

2700 of 2718 relevant lines covered (99.34%)

0.99 hits per line

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

90.48
/chift/models/consumers/custom/__init__.py
1
from typing import ClassVar
1✔
2

3
from chift.api.mixins import CreateMixin, PaginationMixin, ReadMixin, UpdateMixin
1✔
4

5

6
class CustomRouter:
1✔
7
    def __init__(self, consumer_id, connection_id):
1✔
8
        self.Custom = Custom(consumer_id, connection_id)
1✔
9

10

11
class Custom(ReadMixin, CreateMixin, UpdateMixin, PaginationMixin):
1✔
12
    chift_vertical: ClassVar = "custom"
1✔
13
    chift_model: ClassVar = ""
1✔
14
    model = None
1✔
15

16
    def get(self, connector, entity, id, client=None):
1✔
17
        self.extra_path = f"{connector}/{entity}/{id}"
×
18
        return super().get(map_model=False, client=client)
×
19

20
    def all(self, connector, entity, params=None, client=None, limit=None):
1✔
21
        self.extra_path = f"{connector}/{entity}"
1✔
22
        return super().all(params=params, map_model=False, client=client, limit=limit)
1✔
23

24
    def create(self, connector, entity, data, client=None):
1✔
25
        self.extra_path = f"{connector}/{entity}"
1✔
26
        return super().create(data, map_model=False, client=client)
1✔
27

28
    def update(self, connector, entity, id, data, client=None):
1✔
29
        self.extra_path = f"{connector}/{entity}/{id}"
1✔
30
        return super().update(None, data, map_model=False, client=client)
1✔
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