Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Yangtong Xu committed Apr 25, 2024
1 parent 7eb9dd4 commit 5858612
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def test_deserialize(self):
"system_metrics": {"duration": "00:00:00.0154544", "total_tokens": 0},
"result": {"answer": "Hello world: What's promptflow?"},
"upload_metrics": False,
"otel_trace_id": "test_otel_trace_id",
}
flow_run_info = FlowRunInfo.deserialize(flow_run_info_dict)
assert flow_run_info.index == 0
Expand All @@ -134,3 +135,4 @@ def test_deserialize(self):
assert flow_run_info.api_calls is None
assert flow_run_info.system_metrics == {"duration": "00:00:00.0154544", "total_tokens": 0}
assert flow_run_info.output == {"answer": "Hello world: What's promptflow?"}
assert flow_run_info.otel_trace_id == "test_otel_trace_id"

0 comments on commit 5858612

Please sign in to comment.