_build_server_tool_groups returns correct grouping.
(chat_context)
| 764 | |
| 765 | @pytest.mark.asyncio |
| 766 | async def test_build_server_tool_groups(chat_context): |
| 767 | """_build_server_tool_groups returns correct grouping.""" |
| 768 | await chat_context.initialize() |
| 769 | groups = chat_context._build_server_tool_groups() |
| 770 | |
| 771 | assert len(groups) == 2 |
| 772 | |
| 773 | names = {g.name for g in groups} |
| 774 | assert names == {"srv1", "srv2"} |
| 775 | |
| 776 | for group in groups: |
| 777 | assert group.name |
| 778 | assert isinstance(group.tools, list) |
| 779 | assert len(group.tools) >= 1 |
| 780 | |
| 781 | |
| 782 | @pytest.mark.asyncio |
nothing calls this directly
no test coverage detected