Skip to content

model

Model implementation for the TestSuite artifact.

TestCaseModel

Bases: BaseModel

Source code in mlte/suite/model.py
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class TestCaseModel(BaseModel):
    identifier: str
    """A name/id for the test case."""

    goal: str
    """A description of the goal of this test case."""

    qas_list: list[str] = []
    """A list of ids of Quality Attribute Scenarios that this case is addressing."""

    measurement: Optional[MeasurementMetadata] = None
    """Measurement to be used with this test case."""

    validator: Optional[ValidatorModel] = None
    """Validation to be used for this test case."""

    note: Optional[str] = None
    """Additional information to go along with this test case."""

goal instance-attribute

A description of the goal of this test case.

identifier instance-attribute

A name/id for the test case.

measurement = None class-attribute instance-attribute

Measurement to be used with this test case.

note = None class-attribute instance-attribute

Additional information to go along with this test case.

qas_list = [] class-attribute instance-attribute

A list of ids of Quality Attribute Scenarios that this case is addressing.

validator = None class-attribute instance-attribute

Validation to be used for this test case.

TestSuiteModel

Bases: BaseModel

The model implementation for the TestSuite artifact.

Source code in mlte/suite/model.py
31
32
33
34
35
36
37
class TestSuiteModel(BaseModel):
    """The model implementation for the TestSuite artifact."""

    artifact_type: Literal[ArtifactType.TEST_SUITE] = ArtifactType.TEST_SUITE
    """Union discriminator."""

    test_cases: list[TestCaseModel] = []

artifact_type = ArtifactType.TEST_SUITE class-attribute instance-attribute

Union discriminator.