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

chift-oneapi / chift-python-sdk / 5961464362

24 Aug 2023 08:40AM UTC coverage: 99.31%. First build
5961464362

Pull #3

github-actions

tdetry
[FIX] run CI on push to master for badges
Pull Request #3: [FIX] run CI on push to master for badges

2592 of 2610 relevant lines covered (99.31%)

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) -> list[DataModel]:
1✔
21
        self.extra_path = f"{datastore_id}/data"
1✔
22
        return [
1✔
23
            DataModel(**item)
24
            for item in super().create(data, map_model=False, client=client)
25
        ]
26

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