• 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

47.37
/tests/test_custom.py
1
import uuid
1✔
2

3
import pytest
1✔
4

5
from chift.openapi.models import Consumer
1✔
6

7

8
@pytest.mark.skip(reason="need extra data for mock customs")
1✔
9
def test_get_products(custom_regate_consumer: Consumer):
1✔
10
    consumer = custom_regate_consumer
×
11

12
    products = consumer.custom.Custom.all("regate", "products", limit=2)
×
13

14
    assert products and len(products) <= 2
×
15

16

17
@pytest.mark.skip(reason="need extra data for mock customs")
1✔
18
def test_get_contacts(custom_regate_consumer: Consumer):
1✔
19
    consumer = custom_regate_consumer
×
20

21
    contacts = consumer.custom.Custom.all("regate", "contacts", limit=2)
×
22

23
    assert contacts and len(contacts) <= 2
×
24

25

26
@pytest.mark.skip(reason="need extra data for mock customs")
1✔
27
def test_create_product(custom_regate_consumer: Consumer):
1✔
28
    consumer = custom_regate_consumer
×
29

30
    data = {
×
31
        "sales_vat_account_id": "ee37ef01-725b-4bd6-a096-06d8093f2c82",
32
        "reference": str(uuid.uuid4()),
33
        "price_cents": 1000,
34
        "description": "A toothbrush is an oral hygiene tool used to clean the teeth, gums, and tongue. It consists of a head of tightly clustered bristles, atop of which toothpaste can be applied, mounted on a handle which facilitates the cleaning of hard-to-reach areas of the mouth.",
35
        "name": str(uuid.uuid4()),
36
        "price_currency": "EUR",
37
    }
38

39
    product = consumer.custom.Custom.create("regate", "products", data)
×
40

41
    assert product
×
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