Skip to content

model

Model implementation for MLTE report.

CommentDescriptor

Bases: BaseModel

The model implementation for a generic comment.

Source code in mlte/report/model.py
12
13
14
15
16
class CommentDescriptor(BaseModel):
    """The model implementation for a generic comment."""

    content: str
    """The comment content."""

content instance-attribute

The comment content.

ReportModel

Bases: BaseModel

The model implementation for the MLTE report artifact.

Source code in mlte/report/model.py
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
class ReportModel(BaseModel):
    """The model implementation for the MLTE report artifact."""

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

    negotiation_card_id: str
    """The id of the negotiation card we got the information from."""

    negotiation_card: NegotiationCardModel
    """The specific data from a negotiation card."""

    test_suite_id: str
    """The id of the test suite we got the information from."""

    test_suite: TestSuiteModel
    """The TestSuite used for this run."""

    test_results_id: str
    """The id of the test results we got the information from."""

    test_results: TestResultsModel
    """The actual detailed results of the test run."""

    comments: List[CommentDescriptor] = []
    """Comments included in the report."""

artifact_type = ArtifactType.REPORT class-attribute instance-attribute

Union discriminator.

comments = [] class-attribute instance-attribute

Comments included in the report.

negotiation_card instance-attribute

The specific data from a negotiation card.

negotiation_card_id instance-attribute

The id of the negotiation card we got the information from.

test_results instance-attribute

The actual detailed results of the test run.

test_results_id instance-attribute

The id of the test results we got the information from.

test_suite instance-attribute

The TestSuite used for this run.

test_suite_id instance-attribute

The id of the test suite we got the information from.