mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Update integration test paths to match new durable directory structure
- Updated durabletask integration tests to use samples/durable/console_apps - Updated azurefunctions integration tests to use samples/durable/azure_functions - Fixed paths in conftest.py, test_03_dt_single_agent_streaming.py, and testutils.py Co-authored-by: larohra <41490930+larohra@users.noreply.github.com>
This commit is contained in:
@@ -234,7 +234,7 @@ def get_sample_path_from_marker(request) -> tuple[Path | None, str | None]:
|
||||
|
||||
sample_name = marker.args[0]
|
||||
repo_root = _resolve_repo_root()
|
||||
sample_path = repo_root / "samples" / "getting_started" / "azure_functions" / sample_name
|
||||
sample_path = repo_root / "samples" / "durable" / "azure_functions" / sample_name
|
||||
|
||||
if not sample_path.exists():
|
||||
return None, f"Sample directory does not exist: {sample_path}"
|
||||
|
||||
@@ -169,7 +169,7 @@ def worker_process(
|
||||
pytest.fail("Test class must have @pytest.mark.sample() marker")
|
||||
|
||||
sample_name: str = cast(str, sample_marker.args[0]) # type: ignore[union-attr]
|
||||
sample_path: Path = Path(__file__).parents[4] / "samples" / "getting_started" / "durabletask" / sample_name
|
||||
sample_path: Path = Path(__file__).parents[4] / "samples" / "durable" / "console_apps" / sample_name
|
||||
worker_file: Path = sample_path / "worker.py"
|
||||
|
||||
if not worker_file.exists():
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ import redis.asyncio as aioredis
|
||||
from dt_testutils import OrchestrationHelper, create_agent_client
|
||||
|
||||
# Add sample directory to path to import RedisStreamResponseHandler
|
||||
SAMPLE_DIR = Path(__file__).parents[4] / "samples" / "getting_started" / "durabletask" / "03_single_agent_streaming"
|
||||
SAMPLE_DIR = Path(__file__).parents[4] / "samples" / "durable" / "console_apps" / "03_single_agent_streaming"
|
||||
sys.path.insert(0, str(SAMPLE_DIR))
|
||||
|
||||
from redis_stream_response_handler import RedisStreamResponseHandler # type: ignore[reportMissingImports] # noqa: E402
|
||||
|
||||
Reference in New Issue
Block a user