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

Qiskit / ecosystem / 25492093105

07 May 2026 11:07AM UTC coverage: 52.637%. First build
25492093105

Pull #1126

github

web-flow
Merge b1ff7fdda into cec26526f
Pull Request #1126: Fix a classification: categories -> category

0 of 1 new or added line in 1 file covered. (0.0%)

938 of 1782 relevant lines covered (52.64%)

0.53 hits per line

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

50.0
/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✔
NEW
29
    return [c["name"] for c in toml_file_data["category"]]
×
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 pattern_steps(toml_file_data):
1✔
39
    return [c["name"] for c in toml_file_data["pattern_steps"]]
×
40

41

42
@pytest.fixture
1✔
43
def support(toml_file_data):
1✔
44
    return [c["name"] for c in toml_file_data["maturity"]]
×
45

46

47
def test_valid_interfaces(member, interfaces):
1✔
48
    """007"""
49
    assert (
×
50
        hasattr(member, "interface") and member.interface
51
    ), "the entry `member.interface` does not exist and it is mandatory"
52

53
    for interface in member.interface:
×
54
        assert (
×
55
            interface in interfaces
56
        ), f"the interface '{interface}' does not exist in classifications.toml"
57

58

59
def test_valid_category(member, categories):
1✔
60
    """008"""
61
    assert (
×
62
        member.category in categories
63
    ), "member.category should exist in classifications.toml"
64

65

66
def test_valid_label(member, labels):
1✔
67
    """009"""
68
    for label in member.labels:
×
69
        assert (
×
70
            label in labels
71
        ), f"the label '{label}' does not exist in classifications.toml"
72

73

74
def test_005(member, pattern_steps):
1✔
75
    """All `member.pattern_steps` should exist in https://qisk.it/ecosystem-pattern_steps"""
76
    if not member.pattern_steps:
×
77
        pytest.skip("No Qiskit Pattern step declared")
×
78
    for pattern_step in member.pattern_steps:
×
79
        assert (
×
80
            pattern_step in pattern_steps
81
        ), f"the Qiskit Pattern step '{pattern_step}' does not exist in classifications.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