Skip to content

Commit 46398ca

Browse files
author
Sam Rishi
committed
Merge branch 'master' of https://github.com/ni/nisystemlink-clients-python into users/priya/results-dataframe-utility
2 parents c0dc98d + 652f7c1 commit 46398ca

File tree

6 files changed

+21
-8
lines changed

6 files changed

+21
-8
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22

33
<!--next-version-placeholder-->
44

5+
## v2.1.0 (2025-03-06)
6+
7+
### Feature
8+
9+
* Add client for SystemLink results API ([#82](https://github.com/ni/nisystemlink-clients-python/issues/82)) ([`53f1188`](https://github.com/ni/nisystemlink-clients-python/commit/53f1188b4c4806819dbd20011c4b69d6f51487f9))
10+
11+
### Fix
12+
13+
* Enable null value for results properties ([#99](https://github.com/ni/nisystemlink-clients-python/issues/99)) ([`cba5106`](https://github.com/ni/nisystemlink-clients-python/commit/cba510629a142bffc8d9c5872d2f7a27bca2e8c3))
14+
515
## v2.0.0 (2025-03-05)
616

717
### Feature

nisystemlink/clients/testmonitor/models/_create_result_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class CreateResultRequest(JsonModel):
3535
keywords: Optional[List[str]]
3636
"""A list of keywords that categorize this result."""
3737

38-
properties: Optional[Dict[str, str]]
38+
properties: Optional[Dict[str, Optional[str]]]
3939
"""A list of custom properties for this result."""
4040

4141
operator: Optional[str]

nisystemlink/clients/testmonitor/models/_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Result(JsonModel):
4242
keywords: Optional[List[str]]
4343
"""A list of keywords that categorize this result."""
4444

45-
properties: Optional[Dict[str, str]]
45+
properties: Optional[Dict[str, Optional[str]]]
4646
"""A list of custom properties for this result."""
4747

4848
operator: Optional[str]

nisystemlink/clients/testmonitor/models/_update_result_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class UpdateResultRequest(JsonModel):
3838
keywords: Optional[List[str]]
3939
"""A list of keywords that categorize this result."""
4040

41-
properties: Optional[Dict[str, str]]
41+
properties: Optional[Dict[str, Optional[str]]]
4242
"""A list of custom properties for this result."""
4343

4444
operator: Optional[str]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "nisystemlink-clients"
3-
version = "2.0.0"
3+
version = "2.1.0"
44
description = "NI-SystemLink Python API"
55
authors = ["National Instruments"]
66
maintainers = [

tests/integration/testmonitor/test_testmonitor.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import uuid
2-
from typing import List
2+
from typing import Dict, List, Optional
33

44
import pandas as pd
55
import pytest
@@ -125,7 +125,10 @@ def test__create_single_result_and_get_results__at_least_one_result_exists(
125125
status = Status.PASSED()
126126
results = [
127127
CreateResultRequest(
128-
part_number=unique_identifier, program_name=program_name, status=status
128+
part_number=unique_identifier,
129+
program_name=program_name,
130+
status=status,
131+
properties={"test": None},
129132
)
130133
]
131134
create_results(results)
@@ -321,7 +324,7 @@ def test__update_properties_with_replace__properties_replaced(
321324
original_properties = {"originalKey": "originalValue"}
322325
program_name = "Test Program"
323326
status = Status.PASSED()
324-
new_properties = {new_key: "newValue"}
327+
new_properties: Dict[str, Optional[str]] = {new_key: "newValue"}
325328
create_response: CreateResultsPartialSuccess = create_results(
326329
[
327330
CreateResultRequest(
@@ -358,7 +361,7 @@ def test__update_properties_append__properties_appended(
358361
original_properties = {original_key: "originalValue"}
359362
program_name = "Test Program"
360363
status = Status.PASSED()
361-
new_properties = {new_key: "newValue"}
364+
new_properties: Dict[str, Optional[str]] = {new_key: "newValue"}
362365
create_response: CreateResultsPartialSuccess = create_results(
363366
[
364367
CreateResultRequest(

0 commit comments

Comments
 (0)