From 2267259e58cc26a590a96e9635bc925aea92de7d Mon Sep 17 00:00:00 2001 From: Shiva S Date: Fri, 31 Jul 2026 08:10:29 +0000 Subject: [PATCH] Update FoundryStorage read validation expectation Reflect microsoft-agents-hosting-core 1.3.0 behavior: target_cls is now a required keyword-only argument on AsyncStorageBase.read, so omitting it raises TypeError before adapter validation runs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: c4498c39-31d3-4502-ad7e-e3a0c6ecc97a --- .../azure-ai-agentserver-activity/tests/test_foundry_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/agentserver/azure-ai-agentserver-activity/tests/test_foundry_storage.py b/sdk/agentserver/azure-ai-agentserver-activity/tests/test_foundry_storage.py index 4755bda29f3d..a0254d2a187b 100644 --- a/sdk/agentserver/azure-ai-agentserver-activity/tests/test_foundry_storage.py +++ b/sdk/agentserver/azure-ai-agentserver-activity/tests/test_foundry_storage.py @@ -290,7 +290,7 @@ async def test_validates_like_m365_storage(monkeypatch: pytest.MonkeyPatch) -> N with pytest.raises(ValueError, match="Keys are required"): await storage.read([], target_cls=_TestStoreItem) - with pytest.raises(ValueError, match="target_cls cannot be None"): + with pytest.raises(TypeError, match="target_cls"): await storage.read(["k"]) with pytest.raises(ValueError, match="Changes are required"): await storage.write({})