mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
4bd5469798
* Improve ag-ui tests and coverage * fix tests paths * Fixes * Improve AG-UI test robustness and correctness - Map toolName → tool_call_name in SSE helpers for TOOL_CALL_START events - Fail loudly on malformed SSE JSON in parse_sse_response() instead of silently dropping - Detect duplicate TOOL_CALL_START/TOOL_CALL_END in assert_tool_calls_balanced() - Remove fragile source line reference from test docstring - Add found guard in test_client_tool_sets_additional_properties to prevent vacuous pass Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
14 lines
426 B
Python
14 lines
426 B
Python
# Copyright (c) Microsoft. All rights reserved.
|
|
|
|
"""Conftest for golden tests — ensures parent test dir is importable."""
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
|
|
def pytest_configure() -> None:
|
|
"""Ensure parent test directory is on sys.path for helper module imports."""
|
|
parent_test_dir = str(Path(__file__).resolve().parent.parent)
|
|
if parent_test_dir not in sys.path:
|
|
sys.path.insert(0, parent_test_dir)
|