@@ -246,8 +246,7 @@ def test_update_test_steps(self, sift_client, tmp_path):
246246 {"status" : TestStatus .PASSED },
247247 )
248248
249- # Compare simulated vs actual
250- assert simulated_step3 .status == step3 .status
249+ compare_test_step_fields (simulated_step3 , step3 )
251250
252251 # Update the step using class function.
253252 step3_1 = step3_1 .update (
@@ -377,8 +376,7 @@ def test_update_test_measurements(self, sift_client, tmp_path):
377376 update_step = True ,
378377 )
379378
380- # Compare simulated vs actual
381- assert simulated_measurement2 .passed == measurement2 .passed
379+ compare_test_measurement_fields (simulated_measurement2 , measurement2 )
382380
383381 assert measurement2 .passed == False
384382 assert measurement2 .string_expected_value == "1.10.4"
@@ -439,8 +437,7 @@ def test_update_test_report(self, sift_client, tmp_path):
439437 update = TestReportUpdate (** update_kwargs ),
440438 )
441439
442- # Compare simulated vs actual for the fields that were updated
443- assert simulated_report .end_time == updated_report .end_time
440+ compare_test_report_fields (simulated_report , updated_report )
444441
445442 # Update the report using class function.
446443 updated_report = updated_report .update (
0 commit comments