Skip to content

Commit b3588b1

Browse files
authored
fix: Fix Test Monitor examples (#169)
1 parent 8affad9 commit b3588b1

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

examples/testmonitor/steps.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ def create_test_result():
104104
units="C",
105105
comparisonType="Numeric",
106106
spec_id="spec1",
107-
spec_info={
108-
"specKey": 10
109-
}, # will be converted to string as '{"specKey": 10}'
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)