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

chift-oneapi / chift-python-sdk / 6786892849

07 Nov 2023 03:44PM UTC coverage: 99.032%. First build
6786892849

push

github

tdetry
[0.1.23] fix accounting/invoices params

14 of 16 new or added lines in 3 files covered. (87.5%)

2864 of 2892 relevant lines covered (99.03%)

0.99 hits per line

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

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

3
from chift.api.mixins import (
1✔
4
    CreateMixin,
5
    DeleteMixin,
6
    PaginationMixin,
7
    ReadMixin,
8
    UpdateMixin,
9
)
10

11

12
class CustomRouter:
1✔
13
    def __init__(self, consumer_id, connection_id):
1✔
14
        self.Custom = Custom(consumer_id, connection_id)
1✔
15

16

17
class Custom(ReadMixin, CreateMixin, UpdateMixin, PaginationMixin, DeleteMixin):
1✔
18
    chift_vertical: ClassVar = "custom"
1✔
19
    chift_model: ClassVar = ""
1✔
20
    model = None
1✔
21

22
    def get(self, connector, entity, id, params=None, client=None):
1✔
23
        self.extra_path = f"{connector}/{entity}/{id}"
×
NEW
24
        return super().get(map_model=False, params=params, client=client)
×
25

26
    def all(self, connector, entity, params=None, client=None, limit=None):
1✔
27
        self.extra_path = f"{connector}/{entity}"
1✔
28
        return super().all(params=params, map_model=False, client=client, limit=limit)
1✔
29

30
    def create(self, connector, entity, data, client=None, params=None):
1✔
31
        self.extra_path = f"{connector}/{entity}"
1✔
32
        return super().create(data, map_model=False, client=client, params=params)
1✔
33

34
    def update(self, connector, entity, id, data, client=None, params=None):
1✔
35
        self.extra_path = f"{connector}/{entity}/{id}"
1✔
36
        return super().update(None, data, map_model=False, client=client, params=params)
1✔
37

38
    def delete(self, connector, entity, id, client=None, params=None):
1✔
39
        self.extra_path = f"{connector}/{entity}/{id}"
×
40
        return super().delete(None, map_model=False, client=client, params=params)
×
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