@@ -137,10 +137,25 @@ def test_new_step(self, report_context):
137137 assert test_step .status == TestStatus .PASSED
138138
139139 def test_measurement_update (self , report_context ):
140+ expected_description = "Round-trip check for the new fields on TestMeasurement."
141+ expected_metadata = {
142+ "ctx_test_serial" : "SN-CTX-001" ,
143+ "ctx_test_value" : 42.5 ,
144+ "ctx_test_pass" : True ,
145+ }
146+ expected_channel_names = ["temperature_celsius" ]
147+
140148 test_step = None
141149 with report_context .new_step ("Test Measure" , "Test Measure Description" ) as new_step :
142150 test_step = new_step .current_step
143- new_step .measure (name = "Test Measurement" , value = 10 , bounds = {"min" : 0 , "max" : 10 })
151+ new_step .measure (
152+ name = "Test Measurement" ,
153+ value = 10 ,
154+ bounds = {"min" : 0 , "max" : 10 },
155+ description = expected_description ,
156+ metadata = expected_metadata ,
157+ channel_names = expected_channel_names ,
158+ )
144159 new_step .measure (name = "Test Measurement 2" , value = "string value" , bounds = "string value" )
145160 new_step .measure (name = "Test Measurement 3" , value = True , bounds = "true" )
146161
@@ -149,6 +164,9 @@ def test_measurement_update(self, report_context):
149164 assert measurements [0 ].name == "Test Measurement"
150165 assert measurements [0 ].numeric_value == 10
151166 assert measurements [0 ].measurement_type == TestMeasurementType .DOUBLE
167+ assert measurements [0 ].description == expected_description
168+ assert measurements [0 ].metadata == expected_metadata
169+ assert measurements [0 ].channel_names == expected_channel_names
152170 assert measurements [1 ].name == "Test Measurement 2"
153171 assert measurements [1 ].string_value == "string value"
154172 assert measurements [1 ].measurement_type == TestMeasurementType .STRING
0 commit comments