• 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

87.5
/chift/models/consumers/data/__init__.py
1
from typing import ClassVar
1✔
2

3
from chift.api.mixins import CreateMixin, ListMixin, UpdateMixin
1✔
4
from chift.openapi.models import Data as DataModel
1✔
5

6

7
class Data(
1✔
8
    ListMixin[DataModel],
9
    CreateMixin[DataModel],
10
    UpdateMixin[DataModel],
11
):
12
    chift_vertical: ClassVar = "datastore"
1✔
13
    chift_model: ClassVar = ""
1✔
14
    model = DataModel
1✔
15

16
    def get(self, datastore_id, params=None, client=None) -> DataModel:
1✔
17
        self.extra_path = f"{datastore_id}/data"
×
18
        return super().all(params=params, client=client)
×
19

20
    def create(self, datastore_id, data, client=None, params=None) -> list[DataModel]:
1✔
21
        self.extra_path = f"{datastore_id}/data"
1✔
22
        return [
1✔
23
            DataModel(**item)
24
            for item in super().create(
25
                data, map_model=False, client=client, params=params
26
            )
27
        ]
28

29
    def update(
1✔
30
        self, datastore_id, datastoredata_id, data, client=None, params=None
31
    ) -> DataModel:
32
        self.extra_path = f"{datastore_id}/data/{datastoredata_id}"
1✔
33
        return super().update(None, data, client=client, params=params)
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