Python: Add Unit tests for Azurefunctions package (#1976)

* Add Unit tests for Azurefunctions

* remove duplicate import
This commit is contained in:
Laveesh Rohra
2025-11-07 08:29:43 -08:00
committed by GitHub
Unverified
parent 90742ba48e
commit 754491cdd3
7 changed files with 2684 additions and 2 deletions
@@ -197,9 +197,10 @@ class DurableAgentThread(AgentThread):
**kwargs: Any,
) -> "DurableAgentThread":
"""Restores a durable thread, rehydrating the stored session identifier."""
session_id_value = serialized_thread_state.get(cls._SERIALIZED_SESSION_ID_KEY)
state_payload = dict(serialized_thread_state)
session_id_value = state_payload.pop(cls._SERIALIZED_SESSION_ID_KEY, None)
thread = await super().deserialize(
serialized_thread_state,
state_payload,
message_store=message_store,
**kwargs,
)