Skip to content

Commit bc71d6b

Browse files
committed
fix: Fix Test Monitor examples
1 parent 30d8f1a commit bc71d6b

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

examples/testmonitor/steps.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,7 @@ def create_test_result():
103103
highLimit="40",
104104
units="C",
105105
comparisonType="Numeric",
106-
spec_id="spec1",
107-
spec_info={
108-
"specKey": 10
109-
}, # will be converted to string as '{"specKey": 10}'
106+
spec_id="spec1"
110107
)
111108
],
112109
),

nisystemlink/clients/testmonitor/models/_result.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Result(JsonModel):
3939
total_time_in_seconds: Optional[float] = None
4040
"""The total time that the result took to run in seconds."""
4141

42-
keywords: Optional[List[str]] = None
42+
keywords: Optional[List[Optional[str]]] = None
4343
"""A list of keywords that categorize this result."""
4444

4545
properties: Optional[Dict[str, Optional[str]]] = None
@@ -48,10 +48,10 @@ class Result(JsonModel):
4848
operator: Optional[str] = None
4949
"""The operator that ran the result."""
5050

51-
file_ids: Optional[List[str]] = None
51+
file_ids: Optional[List[Optional[str]]] = None
5252
"""A list of file ids that are attached to this result."""
5353

54-
data_table_ids: Optional[List[str]] = None
54+
data_table_ids: Optional[List[Optional[str]]] = None
5555
"""A list of data table ids that are attached to this result."""
5656

5757
status_type_summary: Optional[Dict[StatusType, int]] = None

0 commit comments

Comments
 (0)