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

Qiskit / ecosystem / 25162097653

30 Apr 2026 11:09AM UTC coverage: 52.564%. First build
25162097653

Pull #1117

github

web-flow
Merge d4c7f4c55 into a1541b593
Pull Request #1117: New property: maturity

37 of 89 new or added lines in 10 files covered. (41.57%)

902 of 1716 relevant lines covered (52.56%)

0.53 hits per line

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

53.13
/ecosystem/validation/test_classifications.py
1
"""Validations involving resources/classification.toml"""
2

3
# pylint: disable=missing-function-docstring, redefined-outer-name
4

5

6
from os import path
1✔
7
from pathlib import Path
1✔
8
import tomllib
1✔
9

10
import pytest
1✔
11

12

13
@pytest.fixture
1✔
14
def toml_file_data():
1✔
15
    root_path = Path(__file__).parent.parent.parent.resolve()
×
16
    labels_toml = path.abspath(Path(root_path, "resources", "classifications.toml"))
×
17
    with open(labels_toml, "rb") as f:
×
18
        data = tomllib.load(f)
×
19
    return data
×
20

21

22
@pytest.fixture
1✔
23
def interfaces(toml_file_data):
1✔
24
    return [c["name"] for c in toml_file_data["interfaces"]]
×
25

26

27
@pytest.fixture
1✔
28
def categories(toml_file_data):
1✔
29
    return [c["name"] for c in toml_file_data["categories"]]
×
30

31

32
@pytest.fixture
1✔
33
def labels(toml_file_data):
1✔
34
    return [c["name"] for c in toml_file_data["labels"]]
×
35

36

37
@pytest.fixture
1✔
38
def support(toml_file_data):
1✔
NEW
39
    return [c["name"] for c in toml_file_data["maturity"]]
×
40

41

42
def test_valid_interfaces(member, interfaces):
1✔
43
    """007"""
44
    assert (
×
45
        hasattr(member, "interface") and member.interface
46
    ), "the entry `member.interface` does not exist and it is mandatory"
47

48
    for interface in member.interface:
×
49
        assert (
×
50
            interface in interfaces
51
        ), f"the interface '{interface}' does not exist in labels.toml"
52

53

54
def test_valid_category(member, categories):
1✔
55
    """008"""
56
    assert member.category in categories, "member.group should exist in labels.toml"
×
57

58

59
def test_valid_label(member, labels):
1✔
60
    """009"""
61
    for label in member.labels:
×
62
        assert label in labels, f"the label '{label}' does not exist in labels.toml"
×
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

© 2026 Coveralls, Inc